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