001: package org.wfmc.audit;
002:
003: /**
004: * @author Antony Lodge
005: */
006: public class WMAChangeTargetWorkflowResponse extends WMASourceWorkflow {
007: private static final long serialVersionUID = 5631448975632770827L;
008:
009: private String targetProcessDefinitionId;
010: private String targetState;
011: private String previousState;
012:
013: public WMAChangeTargetWorkflowResponse() {
014: }
015:
016: /**
017: * @param cwadPrefix
018: * @param messageId
019: * @param extensionNumber
020: * @param extensionType
021: * @param sourceConversationId
022: * @param targetConversationId
023: * @param sourceActivityDefinitionBusinessName
024: *
025: * @param targetProcessInstanceId
026: * @param targetProcessDefinitionBusinessName
027: *
028: * @param targetNodeId
029: * @param targetUserId
030: * @param targetRoleId
031: */
032: public WMAChangeTargetWorkflowResponse(CWADPrefix cwadPrefix,
033: String messageId, short extensionNumber,
034: String extensionType, String sourceConversationId,
035: String targetConversationId,
036: String sourceActivityDefinitionBusinessName,
037: String targetProcessInstanceId,
038: String targetProcessDefinitionBusinessName,
039: String targetNodeId, String targetUserId,
040: String targetRoleId) {
041:
042: super (cwadPrefix, messageId, extensionNumber, extensionType,
043: sourceConversationId, targetConversationId,
044: sourceActivityDefinitionBusinessName,
045: targetProcessInstanceId,
046: targetProcessDefinitionBusinessName, targetNodeId,
047: targetUserId, targetRoleId);
048: }
049:
050: /**
051: * @param cwadPrefix
052: * @param messageId
053: * @param extensionNumber
054: * @param extensionType
055: * @param sourceConversationId
056: * @param targetConversationId
057: * @param sourceActivityDefinitionBusinessName
058: *
059: * @param targetProcessInstanceId
060: * @param targetProcessDefinitionBusinessName
061: *
062: * @param targetNodeId
063: * @param targetUserId
064: * @param targetRoleId
065: * @param targetProcessDefinitionId
066: * @param targetState
067: * @param previousState
068: */
069: public WMAChangeTargetWorkflowResponse(CWADPrefix cwadPrefix,
070: String messageId, short extensionNumber,
071: String extensionType, String sourceConversationId,
072: String targetConversationId,
073: String sourceActivityDefinitionBusinessName,
074: String targetProcessInstanceId,
075: String targetProcessDefinitionBusinessName,
076: String targetNodeId, String targetUserId,
077: String targetRoleId, String targetProcessDefinitionId,
078: String targetState, String previousState) {
079:
080: super (cwadPrefix, messageId, extensionNumber, extensionType,
081: sourceConversationId, targetConversationId,
082: sourceActivityDefinitionBusinessName,
083: targetProcessInstanceId,
084: targetProcessDefinitionBusinessName, targetNodeId,
085: targetUserId, targetRoleId);
086:
087: this .targetProcessDefinitionId = targetProcessDefinitionId;
088: this .targetState = targetState;
089: this .previousState = previousState;
090: }
091:
092: /**
093: * @return The target process definition Id.
094: */
095: public String getTargetProcessDefinitionId() {
096: return targetProcessDefinitionId;
097: }
098:
099: /**
100: * @param targetProcessDefinitionId
101: */
102: public void setTargetProcessDefinitionId(
103: String targetProcessDefinitionId) {
104:
105: this .targetProcessDefinitionId = targetProcessDefinitionId;
106: }
107:
108: /**
109: * @return The target process state.
110: */
111: public String getTargetState() {
112: return targetState;
113: }
114:
115: /**
116: * @param targetState
117: */
118: public void setTargetState(String targetState) {
119: this .targetState = targetState;
120: }
121:
122: /**
123: * @return The previous target state.
124: */
125: public String getPreviousState() {
126: return previousState;
127: }
128:
129: /**
130: * @param previousState
131: */
132: public void setPreviousState(String previousState) {
133: this .previousState = previousState;
134: }
135:
136: public String toString() {
137: return "WMAChangeTargetWorkflowResponse@"
138: + System.identityHashCode(this ) + '[' + " cwadPrefix="
139: + formatCwadPrefix() + ", messageId=" + getMessageId()
140: + ", sourceActivityDefinitionBusinessName='"
141: + getSourceActivityDefinitionBusinessName() + '\''
142: + ", targetProcessDefinitionId="
143: + targetProcessDefinitionId
144: + ", targetProcessInstanceId="
145: + getTargetProcessInstanceId()
146: + ", targetProcessDefinitionBusinessName='"
147: + getTargetProcessDefinitionBusinessName() + '\''
148: + ", targetNodeId=" + getTargetNodeId()
149: + ", targetUserId=" + getTargetUserId()
150: + ", targetRoleId=" + getTargetRoleId()
151: + ", targetState=" + targetState + ", previousState="
152: + previousState + ", extensionNumber="
153: + getExtensionNumber() + ", extensionType='"
154: + getExtensionType() + '\''
155: + ", sourceConversationId='"
156: + getSourceConversationId() + '\''
157: + ", targetConversationId='"
158: + getTargetConversationId() + '\'' + ']';
159: }
160: }
|