Enum Class StepProcessInstanceStateType
java.lang.Object
java.lang.Enum<StepProcessInstanceStateType>
com.bonitasoft.processbuilder.enums.StepProcessInstanceStateType
- All Implemented Interfaces:
Serializable,Comparable<StepProcessInstanceStateType>,Constable
Defines the possible lifecycle states for a Process Step Instance (PBStepProcessInstance).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe step was bypassed or manually terminated.The human task has been successfully completed by the user (e.g., the form was submitted).The step execution finished successfully, meaning all associated actions (connectors, notifications, redirections) have been successfully processed.The step failed due to a system error (e.g., connector failure).The step is a user task awaiting assignment or completion by an actor.The step is currently being executed or is waiting for execution in the engine. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all step instance states as a read-only Map where the key is the technical key and the value is the description.Retrieves all technical keys as a read-only List of Strings.Gets the human-readable description of the state.getKey()Gets the technical key of the state.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static StepProcessInstanceStateTypeReturns the enum constant of this class with the specified name.static StepProcessInstanceStateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The step is currently being executed or is waiting for execution in the engine. -
PENDING
The step is a user task awaiting assignment or completion by an actor. -
FAILED
The step failed due to a system error (e.g., connector failure). -
COMPLETED
The human task has been successfully completed by the user (e.g., the form was submitted). The step's subsequent actions are now being processed. -
ENDED
The step execution finished successfully, meaning all associated actions (connectors, notifications, redirections) have been successfully processed. -
CANCELED
The step was bypassed or manually terminated.
-
-
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
-
getKey
Gets the technical key of the state.- Returns:
- The technical key (String).
-
getDescription
Gets the human-readable description of the state.- Returns:
- The description (String).
-
isValid
Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.- Parameters:
input- The string to validate.- Returns:
trueif the string is a valid enum constant,falseotherwise.
-
getAllData
Retrieves all step instance states as a read-only Map where the key is the technical key and the value is the description.- Returns:
- A map containing all process state data (Key -> Description).
-
getAllKeysList
Retrieves all technical keys as a read-only List of Strings.- Returns:
- A list containing all technical keys.
-