Interface ProcessInstanceHistory


  • public interface ProcessInstanceHistory
    Interface that represents the history of a workflow. If that workflow is not completed, this interface also specifies the current step.
    Since:
    5.4.1
    See Also:
    ProcessInstanceStep
    • Method Detail

      • getSteps

        List<ProcessInstanceStep> getSteps()
        Returns the list of process instance steps that have already been executed, as well as the current step if the process is not yet complete. The steps are sorted by ascending order (oldest step first).

        A step can be:

        • a script task,
        • a condition,
        • a user task,
        • a sub-workflow invocation.

        If the workflow is complete and the history has been cleaned, the list of steps will be empty.

        Returns:
        a List of ProcessInstanceStep.
      • getCurrentStep

        ProcessInstanceStep getCurrentStep()
        If the process instance is not completed, returns the current step. Otherwise, returns null.