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: * @author Antony Lodge
056: */
057: public class WMAChangeSourceWorkflowResponse extends WMATargetWorkflow {
058: private static final long serialVersionUID = -4702994829278131089L;
059:
060: private String sourceRequestedState;
061: private String newState;
062:
063: public WMAChangeSourceWorkflowResponse() {
064: }
065:
066: /**
067: * @param cwadPrefix
068: * @param messageId
069: * @param extensionNumber
070: * @param extensionType
071: * @param sourceConversationId
072: * @param targetConversationId
073: * @param sourceInitialProcessInstanceId
074: * @param sourceCurrentProcessInstanceId
075: * @param sourceActivityInstanceId
076: * @param sourceTimestamp
077: * @param sourceNodeId
078: * @param sourceUserId
079: * @param sourceRoleId
080: * @param sourceProcessDefinitionId
081: * @param sourceProcessDefinitionBusinessName
082: *
083: * @param sourceActivityDefinitionBusinessName
084: *
085: */
086: public WMAChangeSourceWorkflowResponse(CWADPrefix cwadPrefix,
087: String messageId, short extensionNumber,
088: String extensionType, String sourceConversationId,
089: String targetConversationId,
090: String sourceInitialProcessInstanceId,
091: String sourceCurrentProcessInstanceId,
092: String sourceActivityInstanceId, Date sourceTimestamp,
093: String sourceNodeId, String sourceUserId,
094: String sourceRoleId, String sourceProcessDefinitionId,
095: String sourceProcessDefinitionBusinessName,
096: String sourceActivityDefinitionBusinessName) {
097:
098: super (cwadPrefix, messageId, extensionNumber, extensionType,
099: sourceConversationId, targetConversationId,
100: sourceInitialProcessInstanceId,
101: sourceCurrentProcessInstanceId,
102: sourceActivityInstanceId, sourceTimestamp,
103: sourceNodeId, sourceUserId, sourceRoleId,
104: sourceProcessDefinitionId,
105: sourceProcessDefinitionBusinessName,
106: sourceActivityDefinitionBusinessName);
107: }
108:
109: /**
110: * @param cwadPrefix
111: * @param messageId
112: * @param extensionNumber
113: * @param extensionType
114: * @param sourceConversationId
115: * @param targetConversationId
116: * @param sourceInitialProcessInstanceId
117: * @param sourceCurrentProcessInstanceId
118: * @param sourceActivityInstanceId
119: * @param sourceTimestamp
120: * @param sourceNodeId
121: * @param sourceUserId
122: * @param sourceRoleId
123: * @param sourceProcessDefinitionId
124: * @param sourceProcessDefinitionBusinessName
125: *
126: * @param sourceActivityDefinitionBusinessName
127: *
128: * @param sourceRequestedState
129: * @param newState
130: */
131: public WMAChangeSourceWorkflowResponse(CWADPrefix cwadPrefix,
132: String messageId, short extensionNumber,
133: String extensionType, String sourceConversationId,
134: String targetConversationId,
135: String sourceInitialProcessInstanceId,
136: String sourceCurrentProcessInstanceId,
137: String sourceActivityInstanceId, Date sourceTimestamp,
138: String sourceNodeId, String sourceUserId,
139: String sourceRoleId, String sourceProcessDefinitionId,
140: String sourceProcessDefinitionBusinessName,
141: String sourceActivityDefinitionBusinessName,
142: String sourceRequestedState, String newState) {
143:
144: super (cwadPrefix, messageId, extensionNumber, extensionType,
145: sourceConversationId, targetConversationId,
146: sourceInitialProcessInstanceId,
147: sourceCurrentProcessInstanceId,
148: sourceActivityInstanceId, sourceTimestamp,
149: sourceNodeId, sourceUserId, sourceRoleId,
150: sourceProcessDefinitionId,
151: sourceProcessDefinitionBusinessName,
152: sourceActivityDefinitionBusinessName);
153:
154: this .sourceRequestedState = sourceRequestedState;
155: this .newState = newState;
156: }
157:
158: /**
159: * @return State process instance requested to change to
160: */
161: public String getSourceRequestedState() {
162: return sourceRequestedState;
163: }
164:
165: /**
166: * @param sourceRequestedState State process instance requested to change to
167: */
168: public void setSourceRequestedState(String sourceRequestedState) {
169: this .sourceRequestedState = sourceRequestedState;
170: }
171:
172: /**
173: * @return New state of remote process instance
174: */
175: public String getNewState() {
176: return newState;
177: }
178:
179: /**
180: * @param newState New state of remote process instance
181: */
182: public void setNewState(String newState) {
183: this .newState = newState;
184: }
185:
186: public String toString() {
187: return "WMAChangeSourceWorkflowResponse@"
188: + System.identityHashCode(this ) + '[' + " cwadPrefix="
189: + formatCwadPrefix() + ", messageId=" + getMessageId()
190: + ", sourceInitialProcessInstanceId="
191: + getSourceInitialProcessInstanceId()
192: + ", sourceCurrentProcessInstanceId="
193: + getSourceCurrentProcessInstanceId()
194: + ", sourceActivityInstanceId="
195: + getSourceActivityInstanceId() + ", sourceTimestamp="
196: + getSourceTimestamp() + ", sourceNodeId="
197: + getSourceNodeId() + ", sourceUserId="
198: + getSourceUserId() + ", sourceRoleId="
199: + getSourceRoleId() + ", sourceProcessDefinitionId="
200: + getSourceProcessDefinitionId()
201: + ", sourceProcessDefinitionBusinessName='"
202: + getSourceProcessDefinitionBusinessName() + '\''
203: + ", sourceActivityDefinitionBusinessName='"
204: + getSourceActivityDefinitionBusinessName() + '\''
205: + ", sourceRequestedState=" + sourceRequestedState
206: + ", newState=" + newState + ", extensionNumber="
207: + getExtensionNumber() + ", extensionType='"
208: + getExtensionType() + '\''
209: + ", sourceConversationId='"
210: + getSourceConversationId() + '\''
211: + ", targetConversationId='"
212: + getTargetConversationId() + '\'' + ']';
213: }
214: }
|