Enum Class WorkflowStateType
- All Implemented Interfaces:
Serializable,Comparable<WorkflowStateType>,Constable
Workflow state types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFinal state of the workflow.State that requires manual action.State that can be normally executed.Initial states of the workflow.State for waiting something outside this instance to happen, including (but not limited to) child workflow instances to go to end state. -
Method Summary
Modifier and TypeMethodDescriptiongetStatus(org.joda.time.DateTime nextActivation) Returns the status for this type.booleanisFinal()Returns true is the state of this type is a final state, e.g.static WorkflowStateTypeReturns the enum constant of this class with the specified name.static WorkflowStateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
start
Initial states of the workflow. -
manual
State that requires manual action. Workflow execution is stopped. -
normal
State that can be normally executed. -
wait
State for waiting something outside this instance to happen, including (but not limited to) child workflow instances to go to end state. When a child workflow finishes and parent is in wait state, parent is automatically woken up. -
end
Final state of the workflow. Workflow execution is stopped.
-
-
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
-
isFinal
public boolean isFinal()Returns true is the state of this type is a final state, e.g. a state after which the workflow processing is stopped. The workflow state can be moved to another state only by manual action.- Returns:
- True for states of type
manualandend, false for states of typestartandnormal.
-
getStatus
Returns the status for this type. This is used when a workflow instance state is updated, the new status of the instance will be determined based on the new state type and next activation time.- Parameters:
nextActivation- The next activation for the instance.- Returns:
- The status resolved for this state type and nextActivation.
-