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: /**
053: * Section 8.7.1 of the WfMC Interface 5 standard.
054: *
055: * @author Antony Lodge
056: */
057: public class WMASetAttributesSourceWorkflowRequest extends
058: WMASourceWorkflow {
059: private static final long serialVersionUID = 1913042494795608898L;
060: private String targetProcessDefinitionId;
061: private String attributeName;
062: private int attributeType;
063: private int attributeLength;
064: private String attributeValue;
065:
066: public WMASetAttributesSourceWorkflowRequest() {
067: }
068:
069: /**
070: * @param cwadPrefix
071: * @param messageId
072: * @param extensionNumber
073: * @param extensionType
074: * @param sourceConversationId
075: * @param targetConversationId
076: * @param sourceActivityDefinitionBusinessName
077: *
078: * @param targetProcessInstanceId
079: * @param targetProcessDefinitionBusinessName
080: *
081: * @param targetNodeId
082: * @param targetUserId
083: * @param targetRoleId
084: */
085: public WMASetAttributesSourceWorkflowRequest(CWADPrefix cwadPrefix,
086: String messageId, short extensionNumber,
087: String extensionType, String sourceConversationId,
088: String targetConversationId,
089: String sourceActivityDefinitionBusinessName,
090: String targetProcessInstanceId,
091: String targetProcessDefinitionBusinessName,
092: String targetNodeId, String targetUserId,
093: String targetRoleId) {
094:
095: super (cwadPrefix, messageId, extensionNumber, extensionType,
096: sourceConversationId, targetConversationId,
097: sourceActivityDefinitionBusinessName,
098: targetProcessInstanceId,
099: targetProcessDefinitionBusinessName, targetNodeId,
100: targetUserId, targetRoleId);
101: }
102:
103: /**
104: * @param cwadPrefix
105: * @param messageId
106: * @param extensionNumber
107: * @param extensionType
108: * @param sourceConversationId
109: * @param targetConversationId
110: * @param sourceActivityDefinitionBusinessName
111: *
112: * @param targetProcessInstanceId
113: * @param targetProcessDefinitionBusinessName
114: *
115: * @param targetNodeId
116: * @param targetUserId
117: * @param targetRoleId
118: * @param targetProcessDefinitionId
119: * @param attributeName
120: * @param attributeType
121: * @param attributeLength
122: * @param attributeValue
123: */
124: public WMASetAttributesSourceWorkflowRequest(CWADPrefix cwadPrefix,
125: String messageId, short extensionNumber,
126: String extensionType, String sourceConversationId,
127: String targetConversationId,
128: String sourceActivityDefinitionBusinessName,
129: String targetProcessInstanceId,
130: String targetProcessDefinitionBusinessName,
131: String targetNodeId, String targetUserId,
132: String targetRoleId, String targetProcessDefinitionId,
133: String attributeName, int attributeType,
134: int attributeLength, String attributeValue) {
135:
136: super (cwadPrefix, messageId, extensionNumber, extensionType,
137: sourceConversationId, targetConversationId,
138: sourceActivityDefinitionBusinessName,
139: targetProcessInstanceId,
140: targetProcessDefinitionBusinessName, targetNodeId,
141: targetUserId, targetRoleId);
142:
143: this .targetProcessDefinitionId = targetProcessDefinitionId;
144: this .attributeName = attributeName;
145: this .attributeType = attributeType;
146: this .attributeLength = attributeLength;
147: this .attributeValue = attributeValue;
148: }
149:
150: /**
151: * @return as supplied to the target Workflow Engine
152: */
153: public String getTargetProcessDefinitionId() {
154: return targetProcessDefinitionId;
155: }
156:
157: /**
158: * @param targetProcessDefinitionId as supplied to the target Workflow
159: * Engine
160: */
161: public void setTargetProcessDefinitionId(
162: String targetProcessDefinitionId) {
163: this .targetProcessDefinitionId = targetProcessDefinitionId;
164: }
165:
166: /**
167: * @return Name of attribute requested
168: */
169: public String getAttributeName() {
170: return attributeName;
171: }
172:
173: /**
174: * @param attributeName Name of attribute requested
175: */
176: public void setAttributeName(String attributeName) {
177: this .attributeName = attributeName;
178: }
179:
180: /**
181: * @return Type of attribute requested
182: */
183: public int getAttributeType() {
184: return attributeType;
185: }
186:
187: /**
188: * @param attributeType Type of attribute requested
189: */
190: public void setAttributeType(int attributeType) {
191: this .attributeType = attributeType;
192: }
193:
194: /**
195: * @return The attribute length.
196: */
197: public int getAttributeLength() {
198: return attributeLength;
199: }
200:
201: /**
202: * @param attributeLength Length of requested attribute
203: */
204: public void setAttributeLength(int attributeLength) {
205: this .attributeLength = attributeLength;
206: }
207:
208: /**
209: * @return Length of requested attribute
210: */
211: public String getAttributeValue() {
212: return attributeValue;
213: }
214:
215: /**
216: * @param attributeValue
217: */
218: public void setAttributeValue(String attributeValue) {
219: this .attributeValue = attributeValue;
220: }
221:
222: public String toString() {
223: return "WMASetAttributesSourceWorkflowRequest@"
224: + System.identityHashCode(this ) + '[' + " cwadPrefix="
225: + formatCwadPrefix() + ", messageId=" + getMessageId()
226: + ", sourceActivityDefinitionBusinessName='"
227: + getSourceActivityDefinitionBusinessName() + '\''
228: + ", targetProcessDefinitionId="
229: + targetProcessDefinitionId
230: + ", targetProcessInstanceId="
231: + getTargetProcessInstanceId()
232: + ", targetProcessDefinitionBusinessName='"
233: + getTargetProcessDefinitionBusinessName() + '\''
234: + ", targetNodeId=" + getTargetNodeId()
235: + ", targetUserId=" + getTargetUserId()
236: + ", targetRoleId=" + getTargetRoleId()
237: + ", attributeName='" + attributeName + '\''
238: + ", attributeType=" + attributeType
239: + ", attributeLength=" + attributeLength
240: + ", attributeValue='" + attributeValue + '\''
241: + ", extensionNumber=" + getExtensionNumber()
242: + ", extensionType='" + getExtensionType() + '\''
243: + ", sourceConversationId='"
244: + getSourceConversationId() + '\''
245: + ", targetConversationId='"
246: + getTargetConversationId() + '\'' + ']';
247: }
248: }
|