Dynamic enumeration
See also: Any dynamic enumeration
Resolver – Abstract
Purpose: Returns a statically determined dynamic enumeration value (DynamicEnum) from a dynamic enumeration determined by the context.
►IMPORTANT◄ All resolvers for Static values ignore the input value. Within a resolver chain (see Verketteter Wertauflöser) this prevents the processing of all preceding resolvers (if any).
The Dynamic enumeration resolver returns a statically determined dynamic enumeration value (DynamicEnum) from a dynamic enumeration determined by the context.
It appears by default as a suggestion for value configurations when the context refers to the one particular dynamic enumeration (see Dynamic enumerations).
Configuration
The Auswahlfeld/Combobox element allows static single selection for values from all dynamic enumerations (see Dynamic 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 dynamic enumeration resolver, the label omits the localization for the dynamic enumeration given by the context. |
|
►IMPORTANT◄ Unlike the Any dynamic enumeration resolver, the Dynamic enumeration resolver cannot be specifically added to a value configuration via a context menu. If an existing value configuration refers to a dynamic enumeration value as a static value, then this automatically appears in the configuration either as a Dynamic enumeration resolver or as an Any dynamic enumeration resolver, depending on the possibly changing context:
Scenario |
Configuration |
Dynamic 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 dynamic 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 dynamic enumeration, a Dynamic enumeration resolver with this data or enumeration type is automatically suggested for the compare value (right).