Package com.mendix.workflows
Enum Class WorkflowState
- All Implemented Interfaces:
Serializable
,Comparable<WorkflowState>
,Constable
Represents the state of a workflow instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe state after the admin abort the workflow instance.The terminal state indicates that the workflow instance is finished.The state after a failure occurred during execution of the workflow instance.Initial state.The state after introducing incompatible new version of the workflow instead of the current one or when the workflow definition is deleted.The state after the admin pauses the workflow instance. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the string representation of the workflow state.static WorkflowState
Returns the enum constant of this class with the specified name.static WorkflowState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN_PROGRESS
Initial state. -
COMPLETED
The terminal state indicates that the workflow instance is finished. -
PAUSED
The state after the admin pauses the workflow instance. Unpausing brings it back toIN_PROGRESS
. -
ABORTED
The state after the admin abort the workflow instance. -
FAILED
The state after a failure occurred during execution of the workflow instance. -
INCOMPATIBLE
The state after introducing incompatible new version of the workflow instead of the current one or when the workflow definition is deleted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
Returns the string representation of the workflow state.- Returns:
- the string representation
-