Interface Workflow

  • All Superinterfaces:
    HasMetaData

    public interface Workflow
    extends HasMetaData
    A Workflow represents the current state of an instance of a WorkflowModel. In terms of petri nets the state of a workflow instance can be considered as the collections of tokens (or WorkItems) that flow through the workflow instance.
    • Method Detail

      • getId

        java.lang.String getId()
        Returns the Workflow instance ID.
        Returns:
        The Workflow instance ID.
      • getWorkItems

        java.util.List<WorkItem> getWorkItems()
        Returns the list of WorkItems assigned to the Workflow instance.
        Returns:
        The list of WorkItems assigned to the Workflow
      • getWorkItems

        java.util.List<WorkItem> getWorkItems​(WorkItemFilter filter)
        Returns a filtered list of WorkItems assigned to the Workflow instance.
        Parameters:
        filter - One is able to filter a subset of the available WorkItems by passing a WorkItemFilter impl.
        Returns:
        The list of WorkItems assigned to the Workflow
      • isActive

        boolean isActive()
        Indicates if the Workflow instance is still active.
        Returns:
        True if active, otherwise false.
      • getState

        java.lang.String getState()
        Returns the workflows state. In the default implementation this could be one of RUNNING, SUSPENDED, COMPLETED or ABORTED.
        Returns:
        The current workflows state.
      • getInitiator

        java.lang.String getInitiator()
        Returns the initiator of the Workflow instance.
        Returns:
        The user who initiated the Workflow.
      • getTimeStarted

        java.util.Date getTimeStarted()
        Getter for the point in time where the Workflow instance was started.
        Returns:
        The start time of the Workflow instance.
      • getTimeEnded

        java.util.Date getTimeEnded()
        Getter for the point in time where the Workflow was finished.
        Returns:
        The end time of the Workflow instance.
      • getWorkflowData

        WorkflowData getWorkflowData()
        Returns the WorkflowData object assigned to the Workflow instance.
        Returns:
        The WorkflowData object assigned to the Workflow instance.