Any static enumeration
See also: Static enumeration, Any dynamic enumeration
Resolver – Abstract
Purpose: Returns a statically determined static enumeration value from an arbitrary static enumeration.
►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 Any static enumeration resolver returns a statically determined value from any static enumeration.
Since there is no parent class for 'static enumeration values', there is also no context for a value configuration in which the Any static enumeration resolver would be automatically suggested.
This means that the Any static enumeration resolver can only be accessed specifically (via a context menu in a value configuration) to insert a static enumeration value without any reference to a specific static enumeration in the context.
►NOTE◄
Unlike Dynamic enumerations, static enumerations are defined exclusively in Java code, so there is no overview of all static enumerations in Lobster Data Platform / Orchestration. They cannot be listed via Search API either. The Combobox element in the Any static enumeration resolver is the only way to access all static enumerations and their values via the user interface.
Often the enumeration type is uniquely determined by the context when a value configuration statically assigns a static enumeration value. Then a Static enumeration resolver automatically appears instead of the Any static enumeration resolver. This also applies if the context is only subsequently 'specified' by changes in the environment of an existing value configuration with the Any static enumeration resolver (for details, see the 'Configuration' section for the Static enumeration resolver).
The Any dynamic enumeration resolver provides access to the values of dynamic enumerations defined in Lobster Data Platform / Orchestration (see Dynamic enumerations).
Configuration
The Auswahlfeld/Combobox element allows static single selection for values from all static enumerations. Its search function looks for matches between the text input and the enumeration value labels listed in the dropdown. The label contains the following components:
|
|
The static enumeration to which a selected value belongs is identified as the class for the return value. |
|
Example
An If then else event action is intended to execute a block of event actions within an event handling exactly when the trigger registered at runtime is included in a positive list of events.
The event handling is executed as a whole by the 'Create', 'Update' and 'Delete' events. The specific event actions are triggered only on 'Create' or 'Update'.
Configuration:
The If then else event action is configured with an Entity property rule as shown on the right:
|
|
►NOTE◄ Trying to set the context for the compare value by concatenating an Input object (type safe) resolver with the Type 'Common' (CommonActionEvent) and the Triggering event resolver does not have the desired effect, as shown in the image, that a Static enumeration resolver for the enumeration type 'Common' appears for each of the entries of the Create list resolver in the compare value. However, this is only because the In list compare type is used here, which does not map the type in the context on the left to the contained entries. In conjunction with the Equals compare type, however, the desired effect can be achieved by using two instances of the Entity property rule in an OR conjunction (see below): |
|
|