Enum Class RecipientsType
- All Implemented Interfaces:
Serializable,Comparable<RecipientsType>,Constable
Defines the valid recipient types for notification actions in process workflows.
This enumeration specifies how recipients are determined for email or notification actions.
Each type represents a different strategy for resolving the target recipients:
MEMBERSHIP- Recipients based on organization membershipUSERS- Specific user accountsSTEP_USERS- Users who executed a specific stepSTEP_MANAGERS- Managers of users who executed a specific stepSPECIFIC- Explicitly specified email addresses
- 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 ConstantDescriptionRecipients determined by organizational membership (group, role, or membership).Recipients specified as explicit email addresses.Recipients resolved as the managers of users who executed a specific step.Recipients resolved from users who executed a specific process step.Recipients specified as a list of user identifiers. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecipientsTypeFinds a RecipientsType by its key value.Retrieves all recipient 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 recipient type.getKey()Returns the unique string key associated with this recipient type.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static RecipientsTypeReturns the enum constant of this class with the specified name.static RecipientsType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MEMBERSHIP
Recipients determined by organizational membership (group, role, or membership). -
USERS
Recipients specified as a list of user identifiers. -
STEP_USERS
Recipients resolved from users who executed a specific process step. -
STEP_MANAGERS
Recipients resolved as the managers of users who executed a specific step. -
SPECIFIC
Recipients specified as explicit email addresses.
-
-
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 recipient type.- Returns:
- The recipient type key (e.g., "step_users", "membership").
-
getDescription
Returns the description of this recipient 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.
-
fromKey
Finds a RecipientsType by its key value.- Parameters:
key- The key to search for (e.g., "step_users").- Returns:
- The matching RecipientsType, or
nullif not found.
-
getAllData
Retrieves all recipient 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 recipient type data (Key -> Description).
-
getAllKeysList
Retrieves all technical keys as a read-only List of Strings.- Returns:
- An unmodifiable list containing all recipient type keys.
-