Enum Class DataResolverType
- All Implemented Interfaces:
Serializable,Comparable<DataResolverType>,Constable
This enumeration provides a type-safe way to reference the different types of data that can be resolved dynamically in notifications, emails, and other templated content. Each type corresponds to a specific data source such as recipient information, task links, or step status.
- 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 ConstantDescriptionResolves to the email address of the recipient user.Resolves to the first name of the recipient user.Resolves to the last name of the recipient user.Resolves to the current status of a specific step.Resolves to the username assigned to a specific step.Resolves to a clickable HTML link to the task. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataResolverTypeFinds a DataResolverType by its key.Retrieves all resolver types 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.Returns the description of this resolver type.getKey()Returns the unique string key associated with this resolver type.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static booleanisValidKey(String key) Checks if a given key corresponds to a valid resolver type.static DataResolverTypeReturns the enum constant of this class with the specified name.static DataResolverType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RECIPIENT_FIRSTNAME
Resolves to the first name of the recipient user.Retrieved from the Bonita Identity API using the user ID of the pending human task.
-
RECIPIENT_LASTNAME
Resolves to the last name of the recipient user.Retrieved from the Bonita Identity API using the user ID of the pending human task.
-
RECIPIENT_EMAIL
Resolves to the email address of the recipient user.Retrieved from the Bonita Identity API contact data using the user ID of the pending human task.
-
TASK_LINK
Resolves to a clickable HTML link to the task.Generates an HTML anchor tag with the task URL based on the configured host and the human task ID.
-
STEP_USER_NAME
Resolves to the username assigned to a specific step.Retrieved from the PBStepProcessInstance data based on the root process instance and reference step.
-
STEP_STATUS
Resolves to the current status of a specific step.Retrieved from the PBStepProcessInstance data based on the root process instance and reference step.
-
-
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
Returns the unique string key associated with this resolver type.This key is used to match placeholders in templates (e.g., "recipient_firstname").
- Returns:
- The resolver key.
-
getDescription
Returns the description of this resolver type.- Returns:
- The human-readable description.
-
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 name,falseotherwise.
-
isValidKey
Checks if a given key corresponds to a valid resolver type.Unlike
isValid(String), this method matches against the technical key (e.g., "recipient_firstname") rather than the enum constant name.- Parameters:
key- The key to validate.- Returns:
trueif the key matches a resolver type,falseotherwise.
-
fromKey
Finds a DataResolverType by its key.- Parameters:
key- The technical key to search for.- Returns:
- The matching DataResolverType, or
nullif not found.
-
getAllData
Retrieves all resolver types as a read-only Map where the key is the technical key and the value is the description.- Returns:
- An unmodifiable map containing all resolver type data (Key -> Description).
-
getAllKeysList
Retrieves all technical keys as a read-only List of Strings.- Returns:
- An unmodifiable list containing all resolver type keys.
-