Package com.adobe.granite.workflow.event
Class WorkflowEvent
- java.lang.Object
-
- org.osgi.service.event.Event
-
- com.adobe.granite.workflow.event.WorkflowEvent
-
-
Field Summary
Fields Modifier and Type Field Description static StringDELEGATEEDelegate namestatic StringEVENT_TOPICThe job topic for adding an entry to the audit log.static StringEVENT_TYPEThe type of the event.static StringFROM_NODE_NAMETheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.static StringJOB_FAILED_EVENTstatic StringMODEL_DELETED_EVENTstatic StringMODEL_DEPLOYED_EVENTstatic StringNODE_TRANSITION_EVENTstatic StringPARENT_WORKFLOW_IDstatic StringPROCESS_TIMEOUT_EVENTstatic StringRESOURCE_COLLECTION_MODIFIEDstatic StringRETURNED_TOThe name of the user to whom the workItem is returnedstatic StringTIME_STAMPTime stamp of the time the event was created.static StringTO_NODE_NAMETheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.static StringUSERThe user whose that has triggered the event.static StringVARIABLE_NAMEThe name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.static StringVARIABLE_UPDATE_EVENTstatic StringVARIABLE_VALUEThe new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.static StringWORK_DATATheWorkflowDatathat relates to the event.static StringWORK_ITEMTheWorkItemthat relates to the event.static StringWORKFLOW_ABORTED_EVENTstatic StringWORKFLOW_COMPLETED_EVENTstatic StringWORKFLOW_INSTANCE_IDThe ID of theWorkflowinstance the event relates to.static StringWORKFLOW_NAMEThe name of theWorkflowModelthe event relates to.static StringWORKFLOW_NODEThe node of theWorkflowModelthe event relates to.static StringWORKFLOW_RESUMED_EVENTstatic StringWORKFLOW_STARTED_EVENTstatic StringWORKFLOW_SUSPENDED_EVENTstatic StringWORKFLOW_VERSIONThe version of theWorkflowModelthe event relates to.static StringWORKITEM_CLAIM_EVENTstatic StringWORKITEM_DELEGATION_EVENTstatic StringWORKITEM_UNCLAIM_EVENT
-
Constructor Summary
Constructors Constructor Description WorkflowEvent(Dictionary<?,?> props)Default constructor used for creatingWorkflowEventinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDelegateName()Delegate nameStringgetEventType()The type of the event.StringgetFromNodeName()TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.StringgetParentWorkflowId()StringgetReturnedToName()Returns the name of the user to whom the workItem is returnedDategetTimeStamp()Time stamp of the time the event was created.StringgetToNodeName()TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.StringgetUser()The user who triggered the event.StringgetVariableName()The name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.ObjectgetVariableValue()The new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.WorkflowDatagetWorkflowData()TheWorkflowDatathat relates to the event.StringgetWorkflowInstanceId()The ID of theWorkflowinstance the event relates to.StringgetWorkflowName()The name of theWorkflowModelthe event relates to.StringgetWorkflowNode()The node of theWorkflowModelthe event relates to.StringgetWorkflowVersion()The version of theWorkflowModelthe event relates to.WorkItemgetWorkItem()TheWorkItemthat relates to the event.-
Methods inherited from class org.osgi.service.event.Event
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString
-
-
-
-
Field Detail
-
EVENT_TOPIC
public static final String EVENT_TOPIC
The job topic for adding an entry to the audit log.- See Also:
- Constant Field Values
-
TIME_STAMP
public static final String TIME_STAMP
Time stamp of the time the event was created.- See Also:
- Constant Field Values
-
USER
public static final String USER
The user whose that has triggered the event.- See Also:
- Constant Field Values
-
WORKFLOW_NAME
public static final String WORKFLOW_NAME
The name of theWorkflowModelthe event relates to.- See Also:
- Constant Field Values
-
WORKFLOW_VERSION
public static final String WORKFLOW_VERSION
The version of theWorkflowModelthe event relates to.- See Also:
- Constant Field Values
-
WORKFLOW_NODE
public static final String WORKFLOW_NODE
The node of theWorkflowModelthe event relates to.- See Also:
- Constant Field Values
-
WORKFLOW_INSTANCE_ID
public static final String WORKFLOW_INSTANCE_ID
The ID of theWorkflowinstance the event relates to.- See Also:
- Constant Field Values
-
PARENT_WORKFLOW_ID
public static final String PARENT_WORKFLOW_ID
- See Also:
- Constant Field Values
-
WORK_DATA
public static final String WORK_DATA
TheWorkflowDatathat relates to the event.- See Also:
- Constant Field Values
-
WORK_ITEM
public static final String WORK_ITEM
TheWorkItemthat relates to the event.- See Also:
- Constant Field Values
-
FROM_NODE_NAME
public static final String FROM_NODE_NAME
TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.- See Also:
- Constant Field Values
-
TO_NODE_NAME
public static final String TO_NODE_NAME
TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.- See Also:
- Constant Field Values
-
VARIABLE_NAME
public static final String VARIABLE_NAME
The name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.- See Also:
- Constant Field Values
-
VARIABLE_VALUE
public static final String VARIABLE_VALUE
The new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.- See Also:
- Constant Field Values
-
DELEGATEE
public static final String DELEGATEE
Delegate name- See Also:
- Constant Field Values
-
RETURNED_TO
public static final String RETURNED_TO
The name of the user to whom the workItem is returned- See Also:
- Constant Field Values
-
EVENT_TYPE
public static final String EVENT_TYPE
The type of the event. Can be one of- See Also:
- Constant Field Values
-
MODEL_DEPLOYED_EVENT
public static final String MODEL_DEPLOYED_EVENT
- See Also:
- Constant Field Values
-
MODEL_DELETED_EVENT
public static final String MODEL_DELETED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_STARTED_EVENT
public static final String WORKFLOW_STARTED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_ABORTED_EVENT
public static final String WORKFLOW_ABORTED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_SUSPENDED_EVENT
public static final String WORKFLOW_SUSPENDED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_RESUMED_EVENT
public static final String WORKFLOW_RESUMED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_COMPLETED_EVENT
public static final String WORKFLOW_COMPLETED_EVENT
- See Also:
- Constant Field Values
-
NODE_TRANSITION_EVENT
public static final String NODE_TRANSITION_EVENT
- See Also:
- Constant Field Values
-
VARIABLE_UPDATE_EVENT
public static final String VARIABLE_UPDATE_EVENT
- See Also:
- Constant Field Values
-
PROCESS_TIMEOUT_EVENT
public static final String PROCESS_TIMEOUT_EVENT
- See Also:
- Constant Field Values
-
WORKITEM_DELEGATION_EVENT
public static final String WORKITEM_DELEGATION_EVENT
- See Also:
- Constant Field Values
-
WORKITEM_UNCLAIM_EVENT
public static final String WORKITEM_UNCLAIM_EVENT
- See Also:
- Constant Field Values
-
WORKITEM_CLAIM_EVENT
public static final String WORKITEM_CLAIM_EVENT
- See Also:
- Constant Field Values
-
JOB_FAILED_EVENT
public static final String JOB_FAILED_EVENT
- See Also:
- Constant Field Values
-
RESOURCE_COLLECTION_MODIFIED
public static final String RESOURCE_COLLECTION_MODIFIED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkflowEvent
public WorkflowEvent(Dictionary<?,?> props)
Default constructor used for creatingWorkflowEventinstances.- Parameters:
props- The properties assigned to the event.
-
-
Method Detail
-
getTimeStamp
public Date getTimeStamp()
Time stamp of the time the event was created.- Returns:
- the time stamp of the time the event was created
-
getUser
public String getUser()
The user who triggered the event.- Returns:
- the user who triggered the event
-
getWorkflowName
public String getWorkflowName()
The name of theWorkflowModelthe event relates to.- Returns:
- the name of the
WorkflowModelthe event relates to
-
getWorkflowVersion
public String getWorkflowVersion()
The version of theWorkflowModelthe event relates to.- Returns:
- the version of the
WorkflowModelthe event relates to
-
getWorkflowNode
public String getWorkflowNode()
The node of theWorkflowModelthe event relates to.- Returns:
- the node of the
WorkflowModelthe event relates to
-
getWorkflowInstanceId
public String getWorkflowInstanceId()
The ID of theWorkflowinstance the event relates to.- Returns:
- the ID of the
Workflowinstance the event relates to
-
getParentWorkflowId
public String getParentWorkflowId()
-
getWorkflowData
public WorkflowData getWorkflowData()
TheWorkflowDatathat relates to the event.- Returns:
- the
WorkflowDatathat relates to the event
-
getWorkItem
public WorkItem getWorkItem()
TheWorkItemthat relates to the event.- Returns:
- the
WorkItemthat relates to the event
-
getFromNodeName
public String getFromNodeName()
TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.- Returns:
- the
WorkflowNodethat is the source of aNODE_TRANSITION_EVENT
-
getToNodeName
public String getToNodeName()
TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.- Returns:
- the
WorkflowNodethat is the target of aNODE_TRANSITION_EVENT
-
getVariableName
public String getVariableName()
The name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.- Returns:
- the name of the variable that has changed when a
VARIABLE_UPDATE_EVENTis triggered
-
getVariableValue
public Object getVariableValue()
The new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.- Returns:
- the new value of the variable that has changed when a
VARIABLE_UPDATE_EVENTis triggered
-
getDelegateName
public String getDelegateName()
Delegate name- Returns:
- the delegate name
-
getReturnedToName
public String getReturnedToName()
Returns the name of the user to whom the workItem is returned- Returns:
- user name of the user to whom the workitem is returned.
-
getEventType
public String getEventType()
The type of the event. Can be one of- Returns:
- the event type
-
-