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 java.lang.StringDELEGATEEDelegate namestatic java.lang.StringEVENT_TOPICThe job topic for adding an entry to the audit log.static java.lang.StringEVENT_TYPEThe type of the event.static java.lang.StringFROM_NODE_NAMETheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.static java.lang.StringJOB_FAILED_EVENTstatic java.lang.StringMODEL_DELETED_EVENTstatic java.lang.StringMODEL_DEPLOYED_EVENTstatic java.lang.StringNODE_TRANSITION_EVENTstatic java.lang.StringPARENT_WORKFLOW_IDstatic java.lang.StringPROCESS_TIMEOUT_EVENTstatic java.lang.StringRESOURCE_COLLECTION_MODIFIEDstatic java.lang.StringRETURNED_TOThe name of the user to whom the workItem is returnedstatic java.lang.StringTIME_STAMPTime stamp of the time the event was created.static java.lang.StringTO_NODE_NAMETheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.static java.lang.StringUSERThe user whose that has triggered the event.static java.lang.StringVARIABLE_NAMEThe name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.static java.lang.StringVARIABLE_UPDATE_EVENTstatic java.lang.StringVARIABLE_VALUEThe new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.static java.lang.StringWORK_DATATheWorkflowDatathat relates to the event.static java.lang.StringWORK_ITEMTheWorkItemthat relates to the event.static java.lang.StringWORKFLOW_ABORTED_EVENTstatic java.lang.StringWORKFLOW_COMPLETED_EVENTstatic java.lang.StringWORKFLOW_INSTANCE_IDThe ID of theWorkflowinstance the event relates to.static java.lang.StringWORKFLOW_NAMEThe name of theWorkflowModelthe event relates to.static java.lang.StringWORKFLOW_NODEThe node of theWorkflowModelthe event relates to.static java.lang.StringWORKFLOW_RESUMED_EVENTstatic java.lang.StringWORKFLOW_STARTED_EVENTstatic java.lang.StringWORKFLOW_SUSPENDED_EVENTstatic java.lang.StringWORKFLOW_VERSIONThe version of theWorkflowModelthe event relates to.static java.lang.StringWORKITEM_CLAIM_EVENTstatic java.lang.StringWORKITEM_DELEGATION_EVENTstatic java.lang.StringWORKITEM_UNCLAIM_EVENT
-
Constructor Summary
Constructors Constructor Description WorkflowEvent(java.util.Dictionary<?,?> props)Default constructor used for creatingWorkflowEventinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDelegateName()Delegate namejava.lang.StringgetEventType()The type of the event.java.lang.StringgetFromNodeName()TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.java.lang.StringgetParentWorkflowId()java.lang.StringgetReturnedToName()Returns the name of the user to whom the workItem is returnedjava.util.DategetTimeStamp()Time stamp of the time the event was created.java.lang.StringgetToNodeName()TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.java.lang.StringgetUser()The user who triggered the event.java.lang.StringgetVariableName()The name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.java.lang.ObjectgetVariableValue()The new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.WorkflowDatagetWorkflowData()TheWorkflowDatathat relates to the event.java.lang.StringgetWorkflowInstanceId()The ID of theWorkflowinstance the event relates to.java.lang.StringgetWorkflowName()The name of theWorkflowModelthe event relates to.java.lang.StringgetWorkflowNode()The node of theWorkflowModelthe event relates to.java.lang.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 java.lang.String EVENT_TOPIC
The job topic for adding an entry to the audit log.- See Also:
- Constant Field Values
-
TIME_STAMP
public static final java.lang.String TIME_STAMP
Time stamp of the time the event was created.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
The user whose that has triggered the event.- See Also:
- Constant Field Values
-
WORKFLOW_NAME
public static final java.lang.String WORKFLOW_NAME
The name of theWorkflowModelthe event relates to.- See Also:
- Constant Field Values
-
WORKFLOW_VERSION
public static final java.lang.String WORKFLOW_VERSION
The version of theWorkflowModelthe event relates to.- See Also:
- Constant Field Values
-
WORKFLOW_NODE
public static final java.lang.String WORKFLOW_NODE
The node of theWorkflowModelthe event relates to.- See Also:
- Constant Field Values
-
WORKFLOW_INSTANCE_ID
public static final java.lang.String WORKFLOW_INSTANCE_ID
The ID of theWorkflowinstance the event relates to.- See Also:
- Constant Field Values
-
PARENT_WORKFLOW_ID
public static final java.lang.String PARENT_WORKFLOW_ID
- See Also:
- Constant Field Values
-
WORK_DATA
public static final java.lang.String WORK_DATA
TheWorkflowDatathat relates to the event.- See Also:
- Constant Field Values
-
WORK_ITEM
public static final java.lang.String WORK_ITEM
TheWorkItemthat relates to the event.- See Also:
- Constant Field Values
-
FROM_NODE_NAME
public static final java.lang.String FROM_NODE_NAME
TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.- See Also:
- Constant Field Values
-
TO_NODE_NAME
public static final java.lang.String TO_NODE_NAME
TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.- See Also:
- Constant Field Values
-
VARIABLE_NAME
public static final java.lang.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 java.lang.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 java.lang.String DELEGATEE
Delegate name- See Also:
- Constant Field Values
-
RETURNED_TO
public static final java.lang.String RETURNED_TO
The name of the user to whom the workItem is returned- See Also:
- Constant Field Values
-
EVENT_TYPE
public static final java.lang.String EVENT_TYPE
The type of the event. Can be one of- See Also:
- Constant Field Values
-
MODEL_DEPLOYED_EVENT
public static final java.lang.String MODEL_DEPLOYED_EVENT
- See Also:
- Constant Field Values
-
MODEL_DELETED_EVENT
public static final java.lang.String MODEL_DELETED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_STARTED_EVENT
public static final java.lang.String WORKFLOW_STARTED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_ABORTED_EVENT
public static final java.lang.String WORKFLOW_ABORTED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_SUSPENDED_EVENT
public static final java.lang.String WORKFLOW_SUSPENDED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_RESUMED_EVENT
public static final java.lang.String WORKFLOW_RESUMED_EVENT
- See Also:
- Constant Field Values
-
WORKFLOW_COMPLETED_EVENT
public static final java.lang.String WORKFLOW_COMPLETED_EVENT
- See Also:
- Constant Field Values
-
NODE_TRANSITION_EVENT
public static final java.lang.String NODE_TRANSITION_EVENT
- See Also:
- Constant Field Values
-
VARIABLE_UPDATE_EVENT
public static final java.lang.String VARIABLE_UPDATE_EVENT
- See Also:
- Constant Field Values
-
PROCESS_TIMEOUT_EVENT
public static final java.lang.String PROCESS_TIMEOUT_EVENT
- See Also:
- Constant Field Values
-
WORKITEM_DELEGATION_EVENT
public static final java.lang.String WORKITEM_DELEGATION_EVENT
- See Also:
- Constant Field Values
-
WORKITEM_UNCLAIM_EVENT
public static final java.lang.String WORKITEM_UNCLAIM_EVENT
- See Also:
- Constant Field Values
-
WORKITEM_CLAIM_EVENT
public static final java.lang.String WORKITEM_CLAIM_EVENT
- See Also:
- Constant Field Values
-
JOB_FAILED_EVENT
public static final java.lang.String JOB_FAILED_EVENT
- See Also:
- Constant Field Values
-
RESOURCE_COLLECTION_MODIFIED
public static final java.lang.String RESOURCE_COLLECTION_MODIFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimeStamp
public java.util.Date getTimeStamp()
Time stamp of the time the event was created.- Returns:
- the time stamp of the time the event was created
-
getUser
public java.lang.String getUser()
The user who triggered the event.- Returns:
- the user who triggered the event
-
getWorkflowName
public java.lang.String getWorkflowName()
The name of theWorkflowModelthe event relates to.- Returns:
- the name of the
WorkflowModelthe event relates to
-
getWorkflowVersion
public java.lang.String getWorkflowVersion()
The version of theWorkflowModelthe event relates to.- Returns:
- the version of the
WorkflowModelthe event relates to
-
getWorkflowNode
public java.lang.String getWorkflowNode()
The node of theWorkflowModelthe event relates to.- Returns:
- the node of the
WorkflowModelthe event relates to
-
getWorkflowInstanceId
public java.lang.String getWorkflowInstanceId()
The ID of theWorkflowinstance the event relates to.- Returns:
- the ID of the
Workflowinstance the event relates to
-
getParentWorkflowId
public java.lang.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 java.lang.String getFromNodeName()
TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.- Returns:
- the
WorkflowNodethat is the source of aNODE_TRANSITION_EVENT
-
getToNodeName
public java.lang.String getToNodeName()
TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.- Returns:
- the
WorkflowNodethat is the target of aNODE_TRANSITION_EVENT
-
getVariableName
public java.lang.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 java.lang.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 java.lang.String getDelegateName()
Delegate name- Returns:
- the delegate name
-
getReturnedToName
public java.lang.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 java.lang.String getEventType()
The type of the event. Can be one of- Returns:
- the event type
-
-