Enum ProcessInstanceStep.WaitTaskState

  • All Implemented Interfaces:
    Serializable, Comparable<ProcessInstanceStep.WaitTaskState>
    Enclosing interface:
    ProcessInstanceStep

    public static enum ProcessInstanceStep.WaitTaskState
    extends Enum<ProcessInstanceStep.WaitTaskState>
    Represents the different states of a wait task.

    The life-cycle of a wait task is:

    1. The wait task is in the INITIALIZED state. At this time, the workflow is in a waiting state, but the external system has not called yet, if implemented.
    2. The wait task is in the WAITING state. At this time, if implemented, the call of the external system has been done.
    3. The wait task is in the EVENT_RECEIVED state. At this time, the expected event has been received. But the workflow engine has not handled it yet.
    4. The wait task is in the RESUMED state. At this time, the workflow has been resumed. The workflow is not in a waiting state anymore.

    If an unexpected error occurs, the token is set to the error state, but the waiting state is not changed. By this way, it is possible to know when the error occurs in the waiting.

    Since:
    5.6.1
    • Method Detail

      • values

        public static ProcessInstanceStep.WaitTaskState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ProcessInstanceStep.WaitTaskState c : ProcessInstanceStep.WaitTaskState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProcessInstanceStep.WaitTaskState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getLabel

        public UserMessage getLabel()
        Returns the label of the wait task state.