001: package org.wfmc.audit;
002:
003: import java.util.Date;
004:
005: /**
006: * Change WorkItem State Audit Data as stated in Interface 5 section
007: * 8.5.3 of the WfMC standard.
008: *
009: * @author Antony Lodge
010: */
011: public class WMAChangeTargetWorkflowRequest extends WMATargetWorkflow {
012: private static final long serialVersionUID = 5909489844768004913L;
013:
014: private String sourceRequestedState;
015:
016: public WMAChangeTargetWorkflowRequest() {
017: }
018:
019: /**
020: * @param cwadPrefix
021: * @param messageId
022: * @param extensionNumber
023: * @param extensionType
024: * @param sourceConversationId
025: * @param targetConversationId
026: * @param sourceInitialProcessInstanceId
027: * @param sourceCurrentProcessInstanceId
028: * @param sourceActivityInstanceId
029: * @param sourceTimestamp
030: * @param sourceNodeId
031: * @param sourceUserId
032: * @param sourceRoleId
033: * @param sourceProcessDefinitionId
034: * @param sourceProcessDefinitionBusinessName
035: *
036: * @param sourceActivityDefinitionBusinessName
037: *
038: */
039: public WMAChangeTargetWorkflowRequest(CWADPrefix cwadPrefix,
040: String messageId, short extensionNumber,
041: String extensionType, String sourceConversationId,
042: String targetConversationId,
043: String sourceInitialProcessInstanceId,
044: String sourceCurrentProcessInstanceId,
045: String sourceActivityInstanceId, Date sourceTimestamp,
046: String sourceNodeId, String sourceUserId,
047: String sourceRoleId, String sourceProcessDefinitionId,
048: String sourceProcessDefinitionBusinessName,
049: String sourceActivityDefinitionBusinessName) {
050:
051: super (cwadPrefix, messageId, extensionNumber, extensionType,
052: sourceConversationId, targetConversationId,
053: sourceInitialProcessInstanceId,
054: sourceCurrentProcessInstanceId,
055: sourceActivityInstanceId, sourceTimestamp,
056: sourceNodeId, sourceUserId, sourceRoleId,
057: sourceProcessDefinitionId,
058: sourceProcessDefinitionBusinessName,
059: sourceActivityDefinitionBusinessName);
060: }
061:
062: /**
063: * @param cwadPrefix
064: * @param messageId
065: * @param extensionNumber
066: * @param extensionType
067: * @param sourceConversationId
068: * @param targetConversationId
069: * @param sourceInitialProcessInstanceId
070: * @param sourceCurrentProcessInstanceId
071: * @param sourceActivityInstanceId
072: * @param sourceTimestamp
073: * @param sourceNodeId
074: * @param sourceUserId
075: * @param sourceRoleId
076: * @param sourceProcessDefinitionId
077: * @param sourceProcessDefinitionBusinessName
078: *
079: * @param sourceActivityDefinitionBusinessName
080: *
081: * @param sourceRequestedState
082: */
083: public WMAChangeTargetWorkflowRequest(CWADPrefix cwadPrefix,
084: String messageId, short extensionNumber,
085: String extensionType, String sourceConversationId,
086: String targetConversationId,
087: String sourceInitialProcessInstanceId,
088: String sourceCurrentProcessInstanceId,
089: String sourceActivityInstanceId, Date sourceTimestamp,
090: String sourceNodeId, String sourceUserId,
091: String sourceRoleId, String sourceProcessDefinitionId,
092: String sourceProcessDefinitionBusinessName,
093: String sourceActivityDefinitionBusinessName,
094: String sourceRequestedState) {
095:
096: super (cwadPrefix, messageId, extensionNumber, extensionType,
097: sourceConversationId, targetConversationId,
098: sourceInitialProcessInstanceId,
099: sourceCurrentProcessInstanceId,
100: sourceActivityInstanceId, sourceTimestamp,
101: sourceNodeId, sourceUserId, sourceRoleId,
102: sourceProcessDefinitionId,
103: sourceProcessDefinitionBusinessName,
104: sourceActivityDefinitionBusinessName);
105:
106: this .sourceRequestedState = sourceRequestedState;
107: }
108:
109: /**
110: * @return State process instance requested to change to
111: */
112: public String getSourceRequestedState() {
113: return sourceRequestedState;
114: }
115:
116: /**
117: * @param sourceRequestedState State process instance requested to change to
118: */
119: public void setSourceRequestedState(String sourceRequestedState) {
120: this .sourceRequestedState = sourceRequestedState;
121: }
122:
123: public String toString() {
124: return "WMAChangeTargetWorkflowRequest@"
125: + System.identityHashCode(this ) + '[' + " cwadPrefix="
126: + formatCwadPrefix() + ", messageId=" + getMessageId()
127: + ", sourceInitialProcessInstanceId="
128: + getSourceInitialProcessInstanceId()
129: + ", sourceCurrentProcessInstanceId="
130: + getSourceCurrentProcessInstanceId()
131: + ", sourceActivityInstanceId="
132: + getSourceActivityInstanceId() + ", sourceTimestamp="
133: + getSourceTimestamp() + ", sourceNodeId="
134: + getSourceNodeId() + ", sourceUserId="
135: + getSourceUserId() + ", sourceRoleId="
136: + getSourceRoleId() + ", sourceProcessDefinitionId="
137: + getSourceProcessDefinitionId()
138: + ", sourceProcessDefinitionBusinessName='"
139: + getSourceProcessDefinitionBusinessName() + '\''
140: + ", sourceActivityDefinitionBusinessName='"
141: + getSourceActivityDefinitionBusinessName() + '\''
142: + ", sourceRequestedState=" + sourceRequestedState
143: + ", extensionNumber=" + getExtensionNumber()
144: + ", extensionType='" + getExtensionType() + '\''
145: + ", sourceConversationId='"
146: + getSourceConversationId() + '\''
147: + ", targetConversationId='"
148: + getTargetConversationId() + '\'' + ']';
149: }
150: }
|