Package com.day.cq.workflow.exec
Interface WorkItem
-
- All Superinterfaces:
HasMetaData
public interface WorkItem extends HasMetaData
AWorkItemis the unit that is passed through aninstance of aWorkflow. It contains theWorkflowModelthe instances acts on and a reference to theWorkflowDataWorkflowNodethat describes the underlying workflow step. AWorkItemcan be considered as a token in a petri net that flows through the net during execution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCurrentAssignee()Returns the current assignee, respectively the info in which inbox the workitem "resides".java.lang.StringgetId()Returns the ID of theWorkflowItem.WorkflowNodegetNode()Returns the currenttheWorkflowNodeWorkflowItemis attached to.java.util.DategetTimeEnded()Returns the end time of theWorkflowItem.java.util.DategetTimeStarted()Returns the start time of theWorkflowItem.WorkflowgetWorkflow()Returns theinstance assigned with thisWorkflowWorkflowItem.WorkflowDatagetWorkflowData()Returns theassigned to theWorkflowDataWorkflowItem.-
Methods inherited from interface com.day.cq.workflow.HasMetaData
getMetaData, getMetaDataMap
-
-
-
-
Method Detail
-
getTimeStarted
java.util.Date getTimeStarted()
Returns the start time of theWorkflowItem.- Returns:
- The start time of the
WorkflowItem.
-
getTimeEnded
java.util.Date getTimeEnded()
Returns the end time of theWorkflowItem.- Returns:
- The end time of the
WorkflowItem.
-
getWorkflow
Workflow getWorkflow()
Returns theinstance assigned with thisWorkflowWorkflowItem.- Returns:
Workflowof the workflow instance assigned with theWorkflowItem.
-
getNode
WorkflowNode getNode()
Returns the currenttheWorkflowNodeWorkflowItemis attached to.- Returns:
- The current
of theWorkflowNodeWorkflowItem.
-
getId
java.lang.String getId()
Returns the ID of theWorkflowItem.- Returns:
- ID of the
WorkflowItem.
-
getWorkflowData
WorkflowData getWorkflowData()
Returns theassigned to theWorkflowDataWorkflowItem.- Returns:
- the
of theWorkflowDataWorkflowItem.
-
getCurrentAssignee
java.lang.String getCurrentAssignee()
Returns the current assignee, respectively the info in which inbox the workitem "resides".- Returns:
- current assignee
-
-