Package com.day.cq.workflow.exec
Interface WorkItem
-
- All Superinterfaces:
HasMetaData
public interface WorkItem extends HasMetaData
AWorkItem
is the unit that is passed through an
instance of aWorkflow
. It contains theWorkflowModel
the instances acts on and a reference to theWorkflowData
WorkflowNode
that describes the underlying workflow step. AWorkItem
can 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.String
getCurrentAssignee()
Returns the current assignee, respectively the info in which inbox the workitem "resides".java.lang.String
getId()
Returns the ID of theWorkflowItem
.WorkflowNode
getNode()
Returns the current
theWorkflowNode
WorkflowItem
is attached to.java.util.Date
getTimeEnded()
Returns the end time of theWorkflowItem
.java.util.Date
getTimeStarted()
Returns the start time of theWorkflowItem
.Workflow
getWorkflow()
Returns the
instance assigned with thisWorkflow
WorkflowItem
.WorkflowData
getWorkflowData()
Returns the
assigned to theWorkflowData
WorkflowItem
.-
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 the
instance assigned with thisWorkflow
WorkflowItem
.- Returns:
Workflow
of the workflow instance assigned with theWorkflowItem
.
-
getNode
WorkflowNode getNode()
Returns the current
theWorkflowNode
WorkflowItem
is attached to.- Returns:
- The current
of theWorkflowNode
WorkflowItem
.
-
getId
java.lang.String getId()
Returns the ID of theWorkflowItem
.- Returns:
- ID of the
WorkflowItem
.
-
getWorkflowData
WorkflowData getWorkflowData()
Returns the
assigned to theWorkflowData
WorkflowItem
.- Returns:
- the
of theWorkflowData
WorkflowItem
.
-
getCurrentAssignee
java.lang.String getCurrentAssignee()
Returns the current assignee, respectively the info in which inbox the workitem "resides".- Returns:
- current assignee
-
-