Enum Class ProcessInstanceStateType
java.lang.Object
java.lang.Enum<ProcessInstanceStateType>
com.bonitasoft.processbuilder.enums.ProcessInstanceStateType
- All Implemented Interfaces:
Serializable,Comparable<ProcessInstanceStateType>,Constable
Defines the possible lifecycle states for a Process Instance (PBProcessInstance).
Includes execution, termination, and future placeholder states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFuture state: The instance is moved to historical records for dashboard performance.The instance was manually terminated before completion.The instance has successfully completed its final step.The instance failed due to a severe system or business error.The process instance is orphaned because its parent Bonita process definition was deleted.Future state: The instance has been manually suspended and is awaiting restart.The instance is currently active and processing steps. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all process 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 ProcessInstanceStateTypeReturns the enum constant of this class with the specified name.static ProcessInstanceStateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The instance is currently active and processing steps. -
COMPLETED
The instance has successfully completed its final step. -
CANCELED
The instance was manually terminated before completion. -
FAILED
The instance failed due to a severe system or business error. -
PAUSED
Future state: The instance has been manually suspended and is awaiting restart. -
ARCHIVED
Future state: The instance is moved to historical records for dashboard performance. -
ORPHAN
The process instance is orphaned because its parent Bonita process definition was deleted.This state indicates that the process instance can no longer be managed through standard Bonita workflows because the underlying process definition no longer exists. These instances typically require manual intervention or cleanup procedures.
-
-
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 process 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.
-