01: package org.wfmc.audit;
02:
03: import java.util.Date;
04:
05: /**
06: * Create/Start Process/Subprocess Instance Audit Data.
07: * <p><b>Note:</b> All ids are limited to 64 characters
08: *
09: * @author Antony Lodge
10: */
11: public class WMACreateProcessInstanceData extends WMAAuditBase {
12: private static final long serialVersionUID = 3625765091841098523L;
13:
14: private String _processDefinitionBusinessName;
15:
16: public WMACreateProcessInstanceData() {
17: }
18:
19: public WMACreateProcessInstanceData(String processDefinitionId,
20: String initialProcessInstanceId,
21: String currentProcessInstanceId, int processState,
22: WMAEventCode eventCode, String domainId, String nodeId,
23: String userId, String roleId, Date timestamp,
24: String processDefinitionBusinessName) {
25:
26: super (processDefinitionId, null, initialProcessInstanceId,
27: currentProcessInstanceId, null, null, processState,
28: eventCode, domainId, nodeId, userId, roleId, timestamp);
29: _processDefinitionBusinessName = processDefinitionBusinessName;
30: }
31:
32: public WMACreateProcessInstanceData(String processDefinitionId,
33: String initialProcessInstanceId,
34: String currentProcessInstanceId, int processState,
35: WMAEventCode eventCode, String domainId, String nodeId,
36: String userId, String roleId, Date timestamp,
37: byte accountCode, short extensionNumber,
38: byte extensionType, short extensionLength,
39: short extensionCodePage, Object extensionContent,
40: String processDefinitionBusinessName) {
41:
42: super (processDefinitionId, null, initialProcessInstanceId,
43: currentProcessInstanceId, null, null, processState,
44: eventCode, domainId, nodeId, userId, roleId, timestamp,
45: accountCode, extensionNumber, extensionType,
46: extensionLength, extensionCodePage, extensionContent);
47: _processDefinitionBusinessName = processDefinitionBusinessName;
48: }
49:
50: /**
51: * @return Business name of the process definition relevant to the business
52: */
53: public String getProcessDefinitionBusinessName() {
54: return _processDefinitionBusinessName;
55: }
56:
57: /**
58: * @param processDefinitionBusinessName Business name of the process
59: * definition relevant to the business
60: */
61: public void setProcessDefinitionBusinessName(
62: String processDefinitionBusinessName) {
63: _processDefinitionBusinessName = processDefinitionBusinessName;
64: }
65:
66: public String toString() {
67: return "WMACreateProcessInstanceData@"
68: + System.identityHashCode(this ) + '[' + " cwadPrefix="
69: + formatCwadPrefix()
70: + ", processDefinitionBusinessName='"
71: + _processDefinitionBusinessName + '\''
72: + ", cwadSuffix=" + formatCwadSuffix() + ']';
73: }
74: }
|