001: /*--
002:
003: Copyright (C) 2002 Anthony Eden.
004: All rights reserved.
005:
006: Redistribution and use in source and binary forms, with or without
007: modification, are permitted provided that the following conditions
008: are met:
009:
010: 1. Redistributions of source code must retain the above copyright
011: notice, this list of conditions, and the following disclaimer.
012:
013: 2. Redistributions in binary form must reproduce the above copyright
014: notice, this list of conditions, and the disclaimer that follows
015: these conditions in the documentation and/or other materials
016: provided with the distribution.
017:
018: 3. The names "OBE" and "Open Business Engine" must not be used to
019: endorse or promote products derived from this software without prior
020: written permission. For written permission, please contact
021: me@anthonyeden.com.
022:
023: 4. Products derived from this software may not be called "OBE" or
024: "Open Business Engine", nor may "OBE" or "Open Business Engine"
025: appear in their name, without prior written permission from
026: Anthony Eden (me@anthonyeden.com).
027:
028: In addition, I request (but do not require) that you include in the
029: end-user documentation provided with the redistribution and/or in the
030: software itself an acknowledgement equivalent to the following:
031: "This product includes software developed by
032: Anthony Eden (http://www.anthonyeden.com/)."
033:
034: THIS SOFTWARE IS PROVIdED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
035: WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
036: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
037: DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
038: INDIRECT, INCIdENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
039: (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
040: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
041: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
042: STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
043: IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
044: POSSIBILITY OF SUCH DAMAGE.
045:
046: For more information on OBE, please see <http://obe.sourceforge.net/>.
047:
048: */
049:
050: package org.wfmc.audit;
051:
052: import java.util.Date;
053:
054: /**
055: * Section 8.7.2 of the WfMC Interface 5 standard.
056: *
057: * @author Antony Lodge
058: */
059: public class WMASetAttributesTargetWorkflowRequest extends
060: WMATargetWorkflow {
061: private static final long serialVersionUID = -4440026823151265621L;
062: private String attributeName;
063: private int attributeType;
064: private int attributeLength;
065: private String attributeValue;
066:
067: public WMASetAttributesTargetWorkflowRequest() {
068: }
069:
070: /**
071: * @param cwadPrefix
072: * @param messageId
073: * @param extensionNumber
074: * @param extensionType
075: * @param sourceConversationId
076: * @param targetConversationId
077: * @param sourceInitialProcessInstanceId
078: * @param sourceCurrentProcessInstanceId
079: * @param sourceActivityInstanceId
080: * @param sourceTimestamp
081: * @param sourceNodeId
082: * @param sourceUserId
083: * @param sourceRoleId
084: * @param sourceProcessDefinitionId
085: * @param sourceProcessDefinitionBusinessName
086: *
087: * @param sourceActivityDefinitionBusinessName
088: *
089: */
090: public WMASetAttributesTargetWorkflowRequest(CWADPrefix cwadPrefix,
091: String messageId, short extensionNumber,
092: String extensionType, String sourceConversationId,
093: String targetConversationId,
094: String sourceInitialProcessInstanceId,
095: String sourceCurrentProcessInstanceId,
096: String sourceActivityInstanceId, Date sourceTimestamp,
097: String sourceNodeId, String sourceUserId,
098: String sourceRoleId, String sourceProcessDefinitionId,
099: String sourceProcessDefinitionBusinessName,
100: String sourceActivityDefinitionBusinessName) {
101:
102: super (cwadPrefix, messageId, extensionNumber, extensionType,
103: sourceConversationId, targetConversationId,
104: sourceInitialProcessInstanceId,
105: sourceCurrentProcessInstanceId,
106: sourceActivityInstanceId, sourceTimestamp,
107: sourceNodeId, sourceUserId, sourceRoleId,
108: sourceProcessDefinitionId,
109: sourceProcessDefinitionBusinessName,
110: sourceActivityDefinitionBusinessName);
111: }
112:
113: /**
114: * @param cwadPrefix
115: * @param messageId
116: * @param extensionNumber
117: * @param extensionType
118: * @param sourceConversationId
119: * @param targetConversationId
120: * @param sourceInitialProcessInstanceId
121: * @param sourceCurrentProcessInstanceId
122: * @param sourceActivityInstanceId
123: * @param sourceTimestamp
124: * @param sourceNodeId
125: * @param sourceUserId
126: * @param sourceRoleId
127: * @param sourceProcessDefinitionId
128: * @param sourceProcessDefinitionBusinessName
129: *
130: * @param sourceActivityDefinitionBusinessName
131: *
132: * @param attributeName
133: * @param attributeType
134: * @param attributeLength
135: * @param attributeValue
136: */
137: public WMASetAttributesTargetWorkflowRequest(CWADPrefix cwadPrefix,
138: String messageId, short extensionNumber,
139: String extensionType, String sourceConversationId,
140: String targetConversationId,
141: String sourceInitialProcessInstanceId,
142: String sourceCurrentProcessInstanceId,
143: String sourceActivityInstanceId, Date sourceTimestamp,
144: String sourceNodeId, String sourceUserId,
145: String sourceRoleId, String sourceProcessDefinitionId,
146: String sourceProcessDefinitionBusinessName,
147: String sourceActivityDefinitionBusinessName,
148: String attributeName, int attributeType,
149: int attributeLength, String attributeValue) {
150:
151: super (cwadPrefix, messageId, extensionNumber, extensionType,
152: sourceConversationId, targetConversationId,
153: sourceInitialProcessInstanceId,
154: sourceCurrentProcessInstanceId,
155: sourceActivityInstanceId, sourceTimestamp,
156: sourceNodeId, sourceUserId, sourceRoleId,
157: sourceProcessDefinitionId,
158: sourceProcessDefinitionBusinessName,
159: sourceActivityDefinitionBusinessName);
160:
161: this .attributeName = attributeName;
162: this .attributeType = attributeType;
163: this .attributeLength = attributeLength;
164: this .attributeValue = attributeValue;
165: }
166:
167: /**
168: * @return Name of attribute requested
169: */
170: public String getAttributeName() {
171: return attributeName;
172: }
173:
174: /**
175: * @param attributeName Name of attribute requested
176: */
177: public void setAttributeName(String attributeName) {
178: this .attributeName = attributeName;
179: }
180:
181: /**
182: * @return Type of attribute requested
183: */
184: public int getAttributeType() {
185: return attributeType;
186: }
187:
188: /**
189: * @param attributeType Type of attribute requested
190: */
191: public void setAttributeType(int attributeType) {
192: this .attributeType = attributeType;
193: }
194:
195: /**
196: * @return The attribute length.
197: */
198: public int getAttributeLength() {
199: return attributeLength;
200: }
201:
202: /**
203: * @param attributeLength Length of requested attribute
204: */
205: public void setAttributeLength(int attributeLength) {
206: this .attributeLength = attributeLength;
207: }
208:
209: /**
210: * @return Length of requested attribute
211: */
212: public String getAttributeValue() {
213: return attributeValue;
214: }
215:
216: /**
217: * @param attributeValue
218: */
219: public void setAttributeValue(String attributeValue) {
220: this .attributeValue = attributeValue;
221: }
222:
223: public String toString() {
224: return "SetAttributesTargetWorkflowRequest@"
225: + System.identityHashCode(this ) + '[' + " cwadPrefix="
226: + formatCwadPrefix() + ", messageId=" + getMessageId()
227: + ", sourceInitialProcessInstanceId="
228: + getSourceInitialProcessInstanceId()
229: + ", sourceCurrentProcessInstanceId="
230: + getSourceCurrentProcessInstanceId()
231: + ", sourceActivityInstanceId="
232: + getSourceActivityInstanceId() + ", sourceTimestamp="
233: + getSourceTimestamp() + ", sourceNodeId="
234: + getSourceNodeId() + ", sourceUserId="
235: + getSourceUserId() + ", sourceRoleId="
236: + getSourceRoleId() + ", sourceProcessDefinitionId="
237: + getSourceProcessDefinitionId()
238: + ", sourceProcessDefinitionBusinessName='"
239: + getSourceProcessDefinitionBusinessName() + '\''
240: + ", sourceActivityDefinitionBusinessName='"
241: + getSourceActivityDefinitionBusinessName() + '\''
242: + ", attributeName='" + attributeName + '\''
243: + ", attributeType=" + attributeType
244: + ", attributeLength=" + attributeLength
245: + ", attributeValue='" + attributeValue + '\''
246: + ", extensionNumber=" + getExtensionNumber()
247: + ", extensionType='" + getExtensionType() + '\''
248: + ", sourceConversationId='"
249: + getSourceConversationId() + '\''
250: + ", targetConversationId='"
251: + getTargetConversationId() + '\'' + ']';
252: }
253: }
|