Interface ProcessInstanceStep


  • public interface ProcessInstanceStep
    Represents a step of a process instance. A workflow step can be:

    • a script task,
    • a condition,
    • a user task,
    • a sub-workflows invocation.
    Since:
    5.4.1
    See Also:
    ProcessInstanceHistory
    • Method Detail

      • getId

        int getId()
        Returns the identifier of this step.
        Since:
        5.6.0
      • getStartDate

        Date getStartDate()
        Returns the start date of this step.
      • getEndDate

        Date getEndDate()
        Returns the end date of this step.
      • getLabel

        UserMessage getLabel()
        Returns the label of this step.
      • getDescription

        UserMessage getDescription()
        Returns the description of this step.
      • getDataContextBefore

        DataContext getDataContextBefore()
        Returns the state of the data context just before the execution of the step.
        Since:
        5.6.1
      • getDataContextAfter

        DataContext getDataContextAfter()
        Returns the state of the data context just after the execution of the step.
        Since:
        5.6.1
      • isScriptTask

        boolean isScriptTask()
        Returns true if this step is a script task.
      • isUserTask

        boolean isUserTask()
        Returns true if this step is a user task.
      • isCondition

        boolean isCondition()
        Returns true if this step is a condition.
      • isSubWorkflowsInvocation

        boolean isSubWorkflowsInvocation()
        Returns true if this step is a sub-workflow invocation.
        Since:
        5.5.0
      • isWaitTask

        boolean isWaitTask()
        Returns true if this step is a wait task.
        Since:
        5.6.1
      • isCurrentStep

        boolean isCurrentStep()
        Returns true if this step is the current step of the process instance.
      • getConditionResult

        Boolean getConditionResult()
        Returns the result of the condition.

        Returns null if this step is not a condition.

        See Also:
        isCondition()
      • getUserTaskWorkItem

        UserTask.WorkItem getUserTaskWorkItem()
        Returns the work item associated to the user task or null if this step is not a user task.

        In the legacy user task mode, this method throws an exception if user tasks have several work items.

        Throws:
        IllegalStateException - if user tasks have several work items.
        Since:
        5.7.0
      • getWaitTaskReceivedParameters

        Map<String,​String> getWaitTaskReceivedParameters()
        Returns the parameters which were received when the wait task was resumed; returns null if this step is not a wait task.
        Returns:
        a Map of parameters (key: parameter name, value: parameter value).
        Since:
        5.6.1
      • getWaitTaskResumeId

        String getWaitTaskResumeId()
        Returns the resumption identifier associated with the wait task; returns null if this step is not a wait task.

        This identifier is required to resume a wait task.

        Since:
        5.6.1
      • getWaitTaskExpectedProfile

        Profile getWaitTaskExpectedProfile()
        Returns the profile authorized to resume the wait task; returns null if this step is not a wait task.
        Since:
        5.6.1
      • getWaitTaskHasBeenForcedToResume

        Boolean getWaitTaskHasBeenForcedToResume()
        Returns Boolean.TRUE if the resumption has been done by an administration action; returns null if this step is not a wait task.
        Since:
        5.6.1
      • getWaitTaskState

        ProcessInstanceStep.WaitTaskState getWaitTaskState()
        Returns the current state of the wait task; returns null if this step is not a wait task.
        Since:
        5.6.1
      • isHiddenInProgressView

        boolean isHiddenInProgressView()
        Indicates if the step has been defined as hidden in the progress view.
        Since:
        6.0.0