Enum Class ProcessStateType
- All Implemented Interfaces:
Serializable,Comparable<ProcessStateType>,Constable
Defines the possible lifecycle states for a Process Definition (PBProcess).
Includes main execution states and an optional health indicator.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe process definition is marked as historical and is no longer used.The process definition is currently being edited and is not available for execution.The optional indicator state: the process definition is fully operational and healthy.The optional indicator state: the process definition has known operational issues (e.g., failed instances).The process definition is active and ready to be instantiated.The process definition has been disabled and cannot be instantiated. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all process 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 ProcessStateTypeReturns the enum constant of this class with the specified name.static ProcessStateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAFT
The process definition is currently being edited and is not available for execution. -
RUNNING
The process definition is active and ready to be instantiated. -
STOPPED
The process definition has been disabled and cannot be instantiated. -
ARCHIVED
The process definition is marked as historical and is no longer used. -
HEALTHY
The optional indicator state: the process definition is fully operational and healthy. -
IN_ERROR
The optional indicator state: the process definition has known operational issues (e.g., failed instances).
-
-
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 (e.g., " draft ", "Running").- Returns:
trueif the string is a valid enum constant,falseotherwise.
-
getAllData
Retrieves all process 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.
-