public static enum ProcessInstanceStep.WaitTaskState extends Enum<ProcessInstanceStep.WaitTaskState>
The life-cycle of a wait task is:
INITIALIZED
state. At this time,
the workflow is in a waiting state, but the external system has not called yet, if implemented.
WAITING
state. At this time, if implemented, the call
of the external system has been done.
EVENT_RECEIVED
state. At this time, the expected event
has been received. But the workflow engine has not handled it yet.
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.
Enum Constant and Description |
---|
EVENT_RECEIVED
The expected event has been received but the workflow engine has not handled it yet.
|
INITIALIZED
Workflow's current step is the waiting task, but the external system has not called yet, if implemented.
|
RESUMED
The resumption of the wait task has been done.
|
WAITING
If implemented, the external system has been called, the task is waiting.
|
Modifier and Type | Method and Description |
---|---|
UserMessage |
getLabel()
Returns the label of the wait task state.
|
static ProcessInstanceStep.WaitTaskState |
valueOf(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.
|
public static final ProcessInstanceStep.WaitTaskState INITIALIZED
public static final ProcessInstanceStep.WaitTaskState WAITING
public static final ProcessInstanceStep.WaitTaskState EVENT_RECEIVED
public static final ProcessInstanceStep.WaitTaskState RESUMED
public static ProcessInstanceStep.WaitTaskState[] values()
for (ProcessInstanceStep.WaitTaskState c : ProcessInstanceStep.WaitTaskState.values()) System.out.println(c);
public static ProcessInstanceStep.WaitTaskState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic UserMessage getLabel()