Package com.adobe.granite.workflow.event
Class WorkflowEvent
java.lang.Object
org.osgi.service.event.Event
com.adobe.granite.workflow.event.WorkflowEvent
WorkflowEvent provides an extension of Event that is
used for propagating workflow related information as OSGI events.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDelegate namestatic final StringThe job topic for adding an entry to the audit log.static final StringThe type of the event.static final StringTheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe name of the user to whom the workItem is returnedstatic final StringTime stamp of the time the event was created.static final StringTheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.static final StringThe user whose that has triggered the event.static final StringThe name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.static final Stringstatic final StringThe new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.static final StringTheWorkflowDatathat relates to the event.static final StringTheWorkItemthat relates to the event.static final Stringstatic final Stringstatic final StringThe ID of theWorkflowinstance the event relates to.static final StringThe name of theWorkflowModelthe event relates to.static final StringThe node of theWorkflowModelthe event relates to.static final Stringstatic final Stringstatic final Stringstatic final StringThe version of theWorkflowModelthe event relates to.static final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowEvent(Dictionary<?, ?> props) Default constructor used for creatingWorkflowEventinstances. -
Method Summary
Modifier and TypeMethodDescriptionDelegate nameThe type of the event.TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.Returns the name of the user to whom the workItem is returnedTime stamp of the time the event was created.TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.getUser()The user who triggered the event.The name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.The new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.TheWorkflowDatathat relates to the event.The ID of theWorkflowinstance the event relates to.The name of theWorkflowModelthe event relates to.The node of theWorkflowModelthe event relates to.The version of theWorkflowModelthe event relates to.TheWorkItemthat relates to the event.Methods inherited from class org.osgi.service.event.Event
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString
-
Field Details
-
EVENT_TOPIC
The job topic for adding an entry to the audit log.- See Also:
-
TIME_STAMP
Time stamp of the time the event was created.- See Also:
-
USER
The user whose that has triggered the event.- See Also:
-
WORKFLOW_NAME
The name of theWorkflowModelthe event relates to.- See Also:
-
WORKFLOW_VERSION
The version of theWorkflowModelthe event relates to.- See Also:
-
WORKFLOW_NODE
The node of theWorkflowModelthe event relates to.- See Also:
-
WORKFLOW_INSTANCE_ID
The ID of theWorkflowinstance the event relates to.- See Also:
-
PARENT_WORKFLOW_ID
- See Also:
-
WORK_DATA
TheWorkflowDatathat relates to the event.- See Also:
-
WORK_ITEM
TheWorkItemthat relates to the event.- See Also:
-
FROM_NODE_NAME
TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.- See Also:
-
TO_NODE_NAME
TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.- See Also:
-
VARIABLE_NAME
The name of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.- See Also:
-
VARIABLE_VALUE
The new value of the variable that has changed when aVARIABLE_UPDATE_EVENTis triggered.- See Also:
-
DELEGATEE
Delegate name- See Also:
-
RETURNED_TO
The name of the user to whom the workItem is returned- See Also:
-
EVENT_TYPE
The type of the event. Can be one of- See Also:
-
MODEL_DEPLOYED_EVENT
- See Also:
-
MODEL_DELETED_EVENT
- See Also:
-
WORKFLOW_STARTED_EVENT
- See Also:
-
WORKFLOW_ABORTED_EVENT
- See Also:
-
WORKFLOW_SUSPENDED_EVENT
- See Also:
-
WORKFLOW_RESUMED_EVENT
- See Also:
-
WORKFLOW_COMPLETED_EVENT
- See Also:
-
NODE_TRANSITION_EVENT
- See Also:
-
VARIABLE_UPDATE_EVENT
- See Also:
-
PROCESS_TIMEOUT_EVENT
- See Also:
-
WORKITEM_DELEGATION_EVENT
- See Also:
-
WORKITEM_UNCLAIM_EVENT
- See Also:
-
WORKITEM_CLAIM_EVENT
- See Also:
-
JOB_FAILED_EVENT
- See Also:
-
RESOURCE_COLLECTION_MODIFIED
- See Also:
-
-
Constructor Details
-
WorkflowEvent
Default constructor used for creatingWorkflowEventinstances.- Parameters:
props- The properties assigned to the event.
-
-
Method Details
-
getTimeStamp
Time stamp of the time the event was created.- Returns:
- the time stamp of the time the event was created
-
getUser
The user who triggered the event.- Returns:
- the user who triggered the event
-
getWorkflowName
The name of theWorkflowModelthe event relates to.- Returns:
- the name of the
WorkflowModelthe event relates to
-
getWorkflowVersion
The version of theWorkflowModelthe event relates to.- Returns:
- the version of the
WorkflowModelthe event relates to
-
getWorkflowNode
The node of theWorkflowModelthe event relates to.- Returns:
- the node of the
WorkflowModelthe event relates to
-
getWorkflowInstanceId
The ID of theWorkflowinstance the event relates to.- Returns:
- the ID of the
Workflowinstance the event relates to
-
getParentWorkflowId
-
getWorkflowData
TheWorkflowDatathat relates to the event.- Returns:
- the
WorkflowDatathat relates to the event
-
getWorkItem
TheWorkItemthat relates to the event.- Returns:
- the
WorkItemthat relates to the event
-
getFromNodeName
TheWorkflowNodethat is the source of aNODE_TRANSITION_EVENT.- Returns:
- the
WorkflowNodethat is the source of aNODE_TRANSITION_EVENT
-
getToNodeName
TheWorkflowNodethat is the target of aNODE_TRANSITION_EVENT.- Returns:
- the
WorkflowNodethat is the target of aNODE_TRANSITION_EVENT
-
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
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
Delegate name- Returns:
- the delegate name
-
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
The type of the event. Can be one of- Returns:
- the event type
-