Static enumeration
See also: Any static enumeration
Resolver – Abstract
Purpose: Returns a statically determined static enumeration value from a static 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 Static enumeration resolver returns a statically determined static enumeration value from a static enumeration determined by the context.
It appears by default as a suggestion for value configurations when the context refers to one particular static enumeration.
Configuration
The Auswahlfeld/Combobox element allows static single selection for values from all static enumerations defined in Lobster Data Platform / Orchestration source code. 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:
►NOTE◄ Unlike the Any static enumeration resolver, the label omits the localization for the static enumeration specified by the context (here: 'Abort type'). |
|
►IMPORTANT◄ Unlike the Any static enumeration resolver, the Static enumeration resolver cannot be specifically added to a value configuration via a context menu. If an existing value configuration refers to a static enumeration value as a static value, then this automatically appears either as a Static enumeration resolver or as Any static enumeration resolver, depending on the possibly changing context in the configuration:
Scenario |
Configuration |
Static enumeration (here: 'Abort type') is uniquely defined by the context:
|
▼ The appearance changes automatically depending on the selection for the Class of Variable (left) ▲
|
Reference to the static enumeration is not (any longer) guaranteed after modification:
|
Example
An event handling triggered by the common events 'New' and 'Copy' (see Common action event) contains a block of 'Common actions' and a block of 'Specific actions for copy'. The latter should only be executed if 'Copy' (COPY) is present as a Triggering event.
Configuration:
The Triggering events selected are 'New' and 'Copy' (see Common action event). The Validating rule refers to the common class 'Entity' via Check type. The Action on passed rule are only partially expanded in the image:
|
|
►NOTE◄ If the concatenated Input object (type safe) resolver is removed from the configuration shown at the top right, then the Static enumeration resolver is automatically replaced by the Any static enumeration resolver. As shown in the image on the right, its label now shows the name of the static enumeration ('Common') as a prefix before the event. This has no influence on the function of the event handling. |
|