Enumeration
See also: Any enumeration
Resolver – Abstract
Purpose: Returns a statically determined enumeration value (DynamicEnum) from an enumeration determined by the context.
►IMPORTANT◄ All resolvers for Static values ignore the input value. Within a resolver chain (see Chained resolver) this prevents the processing of all preceding resolvers (if any).
The Enumeration resolver returns a statically determined enumeration value (DynamicEnum) from a enumeration determined by the context.
It appears by default as a suggestion for value configurations when the context refers to the one particular enumeration (see Enumerations).
Configuration
The Auswahlfeld/Combobox element allows static single selection for values from all enumerations (see Enumerations). Its search function looks for matches between the text input and the labels listed in the dropdown for the enumeration values. The label includes the following components:
►NOTE◄ Unlike the Any enumeration resolver, the label omits the localization for the enumeration given by the context. |
|
►IMPORTANT◄ Unlike the Any enumeration resolver, the Enumeration resolver cannot be specifically added to a value configuration via a context menu. If an existing value configuration refers to a enumeration value as a static value, then this automatically appears in the configuration either as a Enumeration resolver or as an Any enumeration resolver, depending on the possibly changing context:
Scenario |
Configuration |
Enumeration (here: Locale) is uniquely defined by the context:
|
▼ The appearance changes automatically depending on the selection for the Class of the Variable (left) ▲
|
Reference to the enumeration is not (any longer) guaranteed after modification:
|
Example
An association criterion is considered to pass exactly when the Current locale is 'French' in the context of a session. Whether a country-specific language selection (fr_CA, fr_FR or fr_CH) is present is ignored.
In the context of an Entity property rule, the Current locale resolver is configured first on the left side, for which the Locale without country option is checked here.
As soon as the compare type Equals is selected afterwards, the value configuration with the compare value appears on the right.
Since the return value for the Current locale (left) uniquely refers to the Locale data type defined by the enumeration, a Enumeration resolver with this data or enumeration type is automatically suggested for the compare value (right).