Package com.adobe.granite.workflow.exec
Interface WorkItem
- All Superinterfaces:
HasMetaData,InboxItem
A WorkItem is the unit that is passed through an
instance of a
Workflow.
WorkflowModel
It contains the the instances acts on and
a reference to the WorkflowDataWorkflowNode that describes the underlying
workflow step.
A WorkItem can be considered as a token in a petri net that
flows through the net during execution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.adobe.granite.workflow.exec.InboxItem
InboxItem.Priority -
Method Summary
Modifier and TypeMethodDescriptionReturns the currently assigned user, respectively the info in which inbox the WorkItem "resides".getId()Returns the ID of theWorkflowItem.getNode()Returns the currenttheWorkflowNodeWorkflowItemis attached to.Returns the end time of theWorkflowItem.Returns the start time of theWorkflowItem.Returns theinstance assigned with thisWorkflowWorkflowItem.Returns theassigned to theWorkflowDataWorkflowItem.voidsetDueTime(Date dueTime) Sets the due time of this workitem.voidsetPriority(InboxItem.Priority priority) Sets the priority for this workitem.voidsetProgressBeginTime(Date progressBeginTime) Sets the progress begin time for this workitem.Methods inherited from interface com.adobe.granite.workflow.HasMetaData
getMetaDataMapMethods inherited from interface com.adobe.granite.workflow.exec.InboxItem
getContentPath, getDueTime, getItemSubType, getItemType, getPriority, getProgressBeginTime, getStatus
-
Method Details
-
getTimeStarted
Date getTimeStarted()Returns the start time of theWorkflowItem.- Specified by:
getTimeStartedin interfaceInboxItem- Returns:
- The start time of the
WorkflowItem.
-
getTimeEnded
Date getTimeEnded()Returns the end time of theWorkflowItem.- Specified by:
getTimeEndedin interfaceInboxItem- 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
String getId()Returns the ID of theWorkflowItem. -
getWorkflowData
WorkflowData getWorkflowData()Returns theassigned to theWorkflowDataWorkflowItem.- Returns:
- the
of theWorkflowDataWorkflowItem.
-
getCurrentAssignee
String getCurrentAssignee()Returns the currently assigned user, respectively the info in which inbox the WorkItem "resides".- Specified by:
getCurrentAssigneein interfaceInboxItem- Returns:
- current assignee
-
setDueTime
Sets the due time of this workitem.- Parameters:
dueTime- the new due time of this workitem
-
setProgressBeginTime
Sets the progress begin time for this workitem.- Parameters:
progressBeginTime- the time for when progress should start on this workitem.
-
setPriority
Sets the priority for this workitem.- Parameters:
priority- the priority of this task.- See Also:
-