Interface WorkItem

All Superinterfaces:
HasMetaData

public interface WorkItem extends HasMetaData
A WorkItem is the unit that is passed through an Workflow instance of a WorkflowModel. It contains the WorkflowData the instances acts on and a reference to the 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.
  • Method Details

    • getTimeStarted

      Date getTimeStarted()
      Returns the start time of the WorkflowItem.
      Returns:
      The start time of the WorkflowItem.
    • getTimeEnded

      Date getTimeEnded()
      Returns the end time of the WorkflowItem.
      Returns:
      The end time of the WorkflowItem.
    • getWorkflow

      Workflow getWorkflow()
      Returns the Workflow instance assigned with this WorkflowItem.
      Returns:
      Workflow of the workflow instance assigned with the WorkflowItem.
    • getNode

      WorkflowNode getNode()
      Returns the current WorkflowNode the WorkflowItem is attached to.
      Returns:
      The current WorkflowNode of the WorkflowItem.
    • getId

      String getId()
      Returns the ID of the WorkflowItem.
      Returns:
      ID of the WorkflowItem.
    • getWorkflowData

      WorkflowData getWorkflowData()
      Returns the WorkflowData assigned to the WorkflowItem.
      Returns:
      the WorkflowData of the WorkflowItem.
    • getCurrentAssignee

      String getCurrentAssignee()
      Returns the current assignee, respectively the info in which inbox the workitem "resides".
      Returns:
      current assignee