WorkflowEvent.java
4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.osgi.service.event.Event
*/
package com.adobe.granite.workflow.event;
import com.adobe.granite.workflow.exec.WorkItem;
import com.adobe.granite.workflow.exec.WorkflowData;
import java.util.Date;
import java.util.Dictionary;
import org.osgi.service.event.Event;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class WorkflowEvent
extends Event {
public static final String EVENT_TOPIC = "com/adobe/granite/workflow/event";
public static final String TIME_STAMP = "TimeStamp";
public static final String USER = "User";
public static final String WORKFLOW_NAME = "WorkflowName";
public static final String WORKFLOW_VERSION = "WorkflowVersion";
public static final String WORKFLOW_NODE = "WorkflowNode";
public static final String WORKFLOW_INSTANCE_ID = "WorkflowInstanceId";
public static final String PARENT_WORKFLOW_ID = "ParentWorkflowId";
public static final String WORK_DATA = "Workdata";
public static final String WORK_ITEM = "Workitem";
public static final String FROM_NODE_NAME = "fromNodeName";
public static final String TO_NODE_NAME = "toNodeName";
public static final String VARIABLE_NAME = "VariableName";
public static final String VARIABLE_VALUE = "VariableValue";
public static final String DELEGATEE = "Delagatee";
public static final String EVENT_TYPE = "EventType";
public static final String MODEL_DEPLOYED_EVENT = "ModelDeployed";
public static final String MODEL_DELETED_EVENT = "ModelDeleted";
public static final String WORKFLOW_STARTED_EVENT = "WorkflowStarted";
public static final String WORKFLOW_ABORTED_EVENT = "WorkflowAborted";
public static final String WORKFLOW_SUSPENDED_EVENT = "WorkflowSuspended";
public static final String WORKFLOW_RESUMED_EVENT = "WorkflowResumed";
public static final String WORKFLOW_COMPLETED_EVENT = "WorkflowCompleted";
public static final String NODE_TRANSITION_EVENT = "NodeTransition";
public static final String VARIABLE_UPDATE_EVENT = "VariableUpdate";
public static final String PROCESS_TIMEOUT_EVENT = "ProcessTimeout";
public static final String WORKITEM_DELEGATION_EVENT = "WorkItemDelegated";
public static final String JOB_FAILED_EVENT = "JobFailed";
public static final String RESOURCE_COLLECTION_MODIFIED = "ResourceCollectionModified";
public WorkflowEvent(Dictionary<?, ?> props) {
super("com/adobe/granite/workflow/event", WorkflowEvent.getUntypedDictionary(props));
}
private static final Dictionary getUntypedDictionary(Dictionary p) {
return p;
}
public Date getTimeStamp() {
return (Date)this.getProperty("TimeStamp");
}
public String getUser() {
return (String)this.getProperty("User");
}
public String getWorkflowName() {
return (String)this.getProperty("WorkflowName");
}
public String getWorkflowVersion() {
return (String)this.getProperty("WorkflowVersion");
}
public String getWorkflowNode() {
return (String)this.getProperty("WorkflowNode");
}
public String getWorkflowInstanceId() {
return (String)this.getProperty("WorkflowInstanceId");
}
public String getParentWorkflowId() {
return (String)this.getProperty("ParentWorkflowId");
}
public WorkflowData getWorkflowData() {
return (WorkflowData)this.getProperty("Workdata");
}
public WorkItem getWorkItem() {
return (WorkItem)this.getProperty("Workitem");
}
public String getFromNodeName() {
return (String)this.getProperty("fromNodeName");
}
public String getToNodeName() {
return (String)this.getProperty("toNodeName");
}
public String getVariableName() {
return (String)this.getProperty("VariableName");
}
public Object getVariableValue() {
return this.getProperty("VariableValue");
}
public String getDelegateName() {
return (String)this.getProperty("Delagatee");
}
public String getEventType() {
return (String)this.getProperty("EventType");
}
}