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