01: package org.wfmc.audit;
02:
03: /**
04: * @author Antony Lodge
05: */
06: public class WMAChangeTargetWorkflowOperation extends
07: WMARemoteAuditBase {
08: private static final long serialVersionUID = 6821617415591508535L;
09:
10: private String newProcessState;
11: private String previousProcessState;
12:
13: public WMAChangeTargetWorkflowOperation() {
14: }
15:
16: /**
17: * @param cwadPrefix
18: * @param messageId
19: * @param extensionNumber
20: * @param extensionType
21: * @param sourceConversationId
22: * @param targetConversationId
23: */
24: public WMAChangeTargetWorkflowOperation(CWADPrefix cwadPrefix,
25: String messageId, short extensionNumber,
26: String extensionType, String sourceConversationId,
27: String targetConversationId) {
28:
29: super (cwadPrefix, messageId, extensionNumber, extensionType,
30: sourceConversationId, targetConversationId);
31: }
32:
33: /**
34: * @param cwadPrefix
35: * @param messageId
36: * @param extensionNumber
37: * @param extensionType
38: * @param sourceConversationId
39: * @param targetConversationId
40: */
41: public WMAChangeTargetWorkflowOperation(CWADPrefix cwadPrefix,
42: String messageId, short extensionNumber,
43: String extensionType, String sourceConversationId,
44: String targetConversationId, String newProcessState,
45: String previousProcessState) {
46:
47: super (cwadPrefix, messageId, extensionNumber, extensionType,
48: sourceConversationId, targetConversationId);
49: this .previousProcessState = previousProcessState;
50: this .newProcessState = newProcessState;
51: }
52:
53: /**
54: * @return State of process instance prior to change
55: */
56: public String getPreviousProcessState() {
57: return previousProcessState;
58: }
59:
60: /**
61: * @return New state of process instance
62: */
63: public String getNewProcessState() {
64: return newProcessState;
65: }
66:
67: /**
68: * @param previousProcessState State of process instance prior to change
69: */
70: public void setPreviousProcessState(String previousProcessState) {
71: this .previousProcessState = previousProcessState;
72: }
73:
74: /**
75: * @param newProcessState New state of process instance
76: */
77: public void setNewProcessState(String newProcessState) {
78: this .newProcessState = newProcessState;
79: }
80:
81: public String toString() {
82: return "WMAChangeTargetWorkflowOperation@"
83: + System.identityHashCode(this ) + '[' + " cwadPrefix="
84: + formatCwadPrefix() + ", messageId=" + getMessageId()
85: + ", previousProcessState=" + previousProcessState
86: + ", newProcessState=" + newProcessState
87: + ", extensionNumber=" + getExtensionNumber()
88: + ", extensionType='" + getExtensionType() + '\''
89: + ", sourceConversationId='"
90: + getSourceConversationId() + '\''
91: + ", targetConversationId='"
92: + getTargetConversationId() + '\'' + ']';
93: }
94: }
|