Enum Class ObjectsManagementOptionType
java.lang.Object
java.lang.Enum<ObjectsManagementOptionType>
com.bonitasoft.processbuilder.enums.ObjectsManagementOptionType
- All Implemented Interfaces:
Serializable,Comparable<ObjectsManagementOptionType>,Constable
Defines the valid option types for the object management process.
This enumeration helps to ensure type safety and code readability by restricting the object type to a predefined set of values, specifically for system configuration objects managed by a process.
- Since:
- 1.0
- Author:
- Bonitasoft
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an AI provider configuration for integrating external AI/LLM services.Represents a category object used for classification or grouping.Represents a system configuration object containing key-value settings.Represents the **entity type** or classification identifier for a record.Represents a **generic entry** or record, typically originating from a master data table. -
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 a brief business description of the action type.getKey()Gets the technical key of the flow action type, typically used for internal logic and data mapping.static booleanisJsonValidForType(String actionType, String optionType, Object jsonInput) Validates a JSON input against the specific schema associated with the provided object management type.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static ObjectsManagementOptionTypeReturns the enum constant of this class with the specified name.static ObjectsManagementOptionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CATEGORY
Represents a category object used for classification or grouping. -
CONFIGURATION
Represents a system configuration object containing key-value settings. -
GENERIC_ENTRY
Represents a **generic entry** or record, typically originating from a master data table. This object holds the actual data values (e.g., records from a "lookup" table). -
ENTITY_TYPE
Represents the **entity type** or classification identifier for a record. This field is embedded within a GENERIC_ENTRY object to specify the kind of master data or lookup object the entry represents, allowing a single table structure (GENERIC_ENTRY) to contain multiple logical object types. -
AI_PROVIDER
Represents an AI provider configuration for integrating external AI/LLM services. This object holds connection details, model selection, and credential information for AI providers such as OpenAI, Anthropic, or Azure OpenAI.
-
-
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 flow action type, typically used for internal logic and data mapping.- Returns:
- The technical key (lowercase).
-
getDescription
Gets a brief business description of the action type.- Returns:
- The description for the user interface or documentation.
-
isValid
Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.- Parameters:
optionTypeInput- The string to validate (e.g., "category", " SMTP ").- Returns:
trueif the string is a valid enum constant,falseotherwise.
-
isJsonValidForType
Validates a JSON input against the specific schema associated with the provided object management type.This method delegates the validation call to the centralized
JsonSchemaValidatorutility.- Parameters:
actionType- The action being performed (e.g., "DELETE", "INSERT", "UPDATE").optionType- The string instance of the object type (e.g., "CATEGORY", "SMTP").jsonInput- The JSON content to validate, expected as a Map/Object from the process context.- Returns:
trueif validation is successful and the schema check passes,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.
-