Package com.adobe.granite.workflow.exec
Interface WorkItem
-
- All Superinterfaces:
HasMetaData,InboxItem
@ProviderType public interface WorkItem extends InboxItem, HasMetaData
A
WorkItemis the unit that is passed through aninstance of aWorkflow.WorkflowModelIt contains the
the instances acts on and a reference to theWorkflowDataWorkflowNodethat describes the underlying workflow step.A
WorkItemcan 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCurrentAssignee()Returns the currently assigned user, 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.voidsetDueTime(java.util.Date dueTime)Sets the due time of this workitem.voidsetPriority(InboxItem.Priority priority)Sets the priority for this workitem.voidsetProgressBeginTime(java.util.Date progressBeginTime)Sets the progress begin time for this workitem.-
Methods inherited from interface com.adobe.granite.workflow.HasMetaData
getMetaDataMap
-
Methods inherited from interface com.adobe.granite.workflow.exec.InboxItem
getContentPath, getDueTime, getItemSubType, getItemType, getPriority, getProgressBeginTime, getStatus
-
-
-
-
Method Detail
-
getTimeStarted
java.util.Date getTimeStarted()
Returns the start time of theWorkflowItem.- Specified by:
getTimeStartedin interfaceInboxItem- Returns:
- The start time of the
WorkflowItem.
-
getTimeEnded
java.util.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
java.lang.String getId()
Returns the ID of theWorkflowItem.
-
getWorkflowData
WorkflowData getWorkflowData()
Returns theassigned to theWorkflowDataWorkflowItem.- Returns:
- the
of theWorkflowDataWorkflowItem.
-
getCurrentAssignee
java.lang.String getCurrentAssignee()
Returns the currently assigned user, respectively the info in which inbox the WorkItem "resides".- Specified by:
getCurrentAssigneein interfaceInboxItem- Returns:
- current assignee
-
setDueTime
void setDueTime(java.util.Date dueTime)
Sets the due time of this workitem.- Parameters:
dueTime- the new due time of this workitem
-
setProgressBeginTime
void setProgressBeginTime(java.util.Date progressBeginTime)
Sets the progress begin time for this workitem.- Parameters:
progressBeginTime- the time for when progress should start on this workitem.
-
setPriority
void setPriority(InboxItem.Priority priority)
Sets the priority for this workitem.- Parameters:
priority- the priority of this task.- See Also:
for details
-
-