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.6.4 of the WfMC Interface 5 standard.
054: *
055: * @author Antony Lodge
056: */
057: public class WMAGetAttributesTargetWorkflowResponse extends
058: WMASourceWorkflow {
059: private static final long serialVersionUID = -554613457844994324L;
060:
061: private String targetProcessDefinitionId;
062: private String attributeName;
063: private int attributeType;
064: private int attributeLength;
065: private String attributeValue;
066:
067: public WMAGetAttributesTargetWorkflowResponse() {
068: }
069:
070: /**
071: * @param cwadPrefix
072: * @param messageId
073: * @param extensionNumber
074: * @param extensionType
075: * @param sourceConversationId
076: * @param targetConversationId
077: * @param sourceActivityDefinitionBusinessName
078: *
079: * @param targetProcessInstanceId
080: * @param targetProcessDefinitionBusinessName
081: *
082: * @param targetNodeId
083: * @param targetUserId
084: * @param targetRoleId
085: */
086: public WMAGetAttributesTargetWorkflowResponse(
087: CWADPrefix cwadPrefix, String messageId,
088: short extensionNumber, String extensionType,
089: String sourceConversationId, String targetConversationId,
090: String sourceActivityDefinitionBusinessName,
091: String targetProcessInstanceId,
092: String targetProcessDefinitionBusinessName,
093: String targetNodeId, String targetUserId,
094: String targetRoleId) {
095:
096: super (cwadPrefix, messageId, extensionNumber, extensionType,
097: sourceConversationId, targetConversationId,
098: sourceActivityDefinitionBusinessName,
099: targetProcessInstanceId,
100: targetProcessDefinitionBusinessName, targetNodeId,
101: targetUserId, targetRoleId);
102: }
103:
104: /**
105: * @param cwadPrefix
106: * @param messageId
107: * @param extensionNumber
108: * @param extensionType
109: * @param sourceConversationId
110: * @param targetConversationId
111: * @param sourceActivityDefinitionBusinessName
112: *
113: * @param targetProcessInstanceId
114: * @param targetProcessDefinitionBusinessName
115: *
116: * @param targetNodeId
117: * @param targetUserId
118: * @param targetRoleId
119: * @param targetProcessDefinitionId
120: * @param attributeName
121: * @param attributeType
122: * @param attributeLength
123: * @param attributeValue
124: */
125: public WMAGetAttributesTargetWorkflowResponse(
126: CWADPrefix cwadPrefix, String messageId,
127: short extensionNumber, String extensionType,
128: String sourceConversationId, String targetConversationId,
129: String sourceActivityDefinitionBusinessName,
130: String targetProcessInstanceId,
131: String targetProcessDefinitionBusinessName,
132: String targetNodeId, String targetUserId,
133: String targetRoleId, String targetProcessDefinitionId,
134: String attributeName, int attributeType,
135: int attributeLength, String attributeValue) {
136:
137: super (cwadPrefix, messageId, extensionNumber, extensionType,
138: sourceConversationId, targetConversationId,
139: sourceActivityDefinitionBusinessName,
140: targetProcessInstanceId,
141: targetProcessDefinitionBusinessName, targetNodeId,
142: targetUserId, targetRoleId);
143:
144: this .targetProcessDefinitionId = targetProcessDefinitionId;
145: this .attributeName = attributeName;
146: this .attributeType = attributeType;
147: this .attributeLength = attributeLength;
148: this .attributeValue = attributeValue;
149: }
150:
151: /**
152: * @return as supplied to the target Workflow Engine
153: */
154: public String getTargetProcessDefinitionId() {
155: return targetProcessDefinitionId;
156: }
157:
158: /**
159: * @param targetProcessDefinitionId as supplied to the target
160: * Workflow Engine
161: */
162: public void setTargetProcessDefinitionId(
163: String targetProcessDefinitionId) {
164: this .targetProcessDefinitionId = targetProcessDefinitionId;
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 "WMAGetAttributesTargetWorkflowResponse@"
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: + ", extensionNumber=" + getExtensionNumber()
243: + ", extensionType='" + getExtensionType() + '\''
244: + ", sourceConversationId='"
245: + getSourceConversationId() + '\''
246: + ", targetConversationId='"
247: + getTargetConversationId() + '\'' + ']';
248: }
249: }
|