Class
►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 Class resolver returns a Java class object determined by a static selection.
It appears by default as a suggestion for value configurations from which a Class value is expected.
Since the string image of the 'Class' (Class) is the fully-qualified class name, the Class resolver can also be used for assignments and comparisons with fields that expect the class name as a string. However, it is not explicitly suggested in such contexts.
Configuration
The only parameter for the resolver is a Combobox element that allows a static single selection for a class. Its search function looks for matches between the input text and the following components of the label for classes in the dropdown:
►IMPORTANT◄ As the screenshot on the right shows, the localization does not have to be unique. Therefore, the internal class name (in brackets) should be carefully observed when selecting. |
|
►NOTE◄ Unlike other resolvers (e.g. Input object (type safe) and Create instance), direct input of a class name is not possible in the Class resolver.
Example
An association criteria (see Association criteria) shall be fulfilled if the input value is any 'entity' that has at least one 'Linked entity attribute' of any type (see Linked entity type) that connects to a business object of the 'Order' (see Orders) type.
Configuration:
Within an AND Junction, a Check type first checks whether the input value belongs to the parent class 'Entity'. Only if this is the case does the linked Entity property rule, in conjunction with the negated Is empty compare type, examine whether the entity in the input value has a linked entity attribute that refers to a specific 'Order':
|
|