Package com.adobe.granite.workflow.exec
Interface WorkItem
-
- All Superinterfaces:
HasMetaData
,InboxItem
@ProviderType public interface WorkItem extends InboxItem, HasMetaData
A
WorkItem
is the unit that is passed through an
instance of aWorkflow
.WorkflowModel
It contains the
the instances acts on and a reference to theWorkflowData
WorkflowNode
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCurrentAssignee()
Returns the currently assigned user, 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
.void
setDueTime(java.util.Date dueTime)
Sets the due time of this workitem.void
setPriority(InboxItem.Priority priority)
Sets the priority for this workitem.void
setProgressBeginTime(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:
getTimeStarted
in interfaceInboxItem
- Returns:
- The start time of the
WorkflowItem
.
-
getTimeEnded
java.util.Date getTimeEnded()
Returns the end time of theWorkflowItem
.- Specified by:
getTimeEnded
in interfaceInboxItem
- 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
.
-
getWorkflowData
WorkflowData getWorkflowData()
Returns the
assigned to theWorkflowData
WorkflowItem
.- Returns:
- the
of theWorkflowData
WorkflowItem
.
-
getCurrentAssignee
java.lang.String getCurrentAssignee()
Returns the currently assigned user, respectively the info in which inbox the WorkItem "resides".- Specified by:
getCurrentAssignee
in 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
-
-