Package com.orchestranetworks.workflow
Enum ProcessInstanceStep.WaitTaskState
- java.lang.Object
-
- java.lang.Enum<ProcessInstanceStep.WaitTaskState>
-
- com.orchestranetworks.workflow.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:
-
The wait task is in the
INITIALIZEDstate. At this time, the workflow is in a waiting state, but the external system has not called yet, if implemented. -
The wait task is in the
WAITINGstate. At this time, if implemented, the call of the external system has been done. -
The wait task is in the
EVENT_RECEIVEDstate. At this time, the expected event has been received. But the workflow engine has not handled it yet. -
The wait task is in the
RESUMEDstate. 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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVENT_RECEIVEDThe expected event has been received but the workflow engine has not handled it yet.INITIALIZEDWorkflow's current step is the waiting task, but the external system has not called yet, if implemented.RESUMEDThe resumption of the wait task has been done.WAITINGIf implemented, the external system has been called, the task is waiting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserMessagegetLabel()Returns the label of the wait task state.static ProcessInstanceStep.WaitTaskStatevalueOf(String name)Returns the enum constant of this type with the specified name.static ProcessInstanceStep.WaitTaskState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZED
public static final ProcessInstanceStep.WaitTaskState INITIALIZED
Workflow's current step is the waiting task, but the external system has not called yet, if implemented.
-
WAITING
public static final ProcessInstanceStep.WaitTaskState WAITING
If implemented, the external system has been called, the task is waiting.
-
EVENT_RECEIVED
public static final ProcessInstanceStep.WaitTaskState EVENT_RECEIVED
The expected event has been received but the workflow engine has not handled it yet.
-
RESUMED
public static final ProcessInstanceStep.WaitTaskState RESUMED
The resumption of the wait task has been done. The task is not in a waiting state anymore.
-
-
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 nameNullPointerException- if the argument is null
-
getLabel
public UserMessage getLabel()
Returns the label of the wait task state.
-
-