--- title: "Plural typed attribute resolver" slug: "core-typed-attributes-resolver" updated: 2026-04-13T09:31:50Z published: 2026-04-13T09:31:50Z canonical: "docs.lobstersoftware.com/core-typed-attributes-resolver" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Plural typed attribute resolver > [!NOTE] > Rule types – Abstract > > **Purpose:** In the context of a *reference object* (entity type must be attribute owner), a 'Typed plural attribute' determined by the 'Subtype' is returned as a list that can be accessed in read and write mode. > > > [!TIP] > > Tooltip > > > > - **Usage**: Access to the attribute selected via the **Typed attribute** and **Subtype** parameters in two stages enables read and write accesses, which are typically performed via concatenation (e.g. with a [List item](/v1/docs/en/core-list-item-resolver) value resolver). > > - **Parameter**: > > - The static selection for the **Typed attribute** selection field specifies the attribute type (e.g. text attribute or flag attribute). > > - The **Subtype** parameter defines by selection within the dynamic enumeration for the **Typed** **attribute** (e.g. [Text type](/v1/docs/en/base-text-type) or [Flag type](/v1/docs/en/base-flag-types)) the typed attribute to be returned. > > - **NOTE:** The selection for the **Subtype** also offers attribute subtypes that are not defined as 'plural'. At runtime, the attribute in question (if any) is returned as the only element of a list. ![images/download/attachments/83165608/image2021-10-6_16-14-42-version-1-modificationdate-1633529684828-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-14-42-version-1-modificationdate-1633529684828-api-v2.png) The [Plural typed attribute resolver](/v1/docs/en/core-typed-attributes-resolver) value resolver provides access to a (*plural*) *typed attribute* of an entity. It expects an entity as a *reference object*, which is considered as an 'attribute owner' according to its type (see [Attribute (Resolvers)](/v1/docs/en/orchestration-resolvers-attributes)) and whose data model provides at least one *typed attribute type*. The return value is a list of single values with the specific data structure for the respective attribute type, which can also be empty. For specific write and read accesses (see 'Examples'), the [Resolvers](/v1/docs/en/core-i-value-resolver) specific to lists (e.g. [List item](/v1/docs/en/core-list-item-resolver), [Rule list resolver](/v1/docs/en/core-list-rule-resolver)) and [Event actions](/v1/docs/en/core-i-action-actor-configuration) (e.g. [For each loop](/v1/docs/en/core-for-each-entity-actor), [Modify list](/v1/docs/en/core-modify-collection-actor)) can be used. Write access to a field implies the creation of a scalar value, if necessary. The **Typed attribute** parameter specifies the type of *typed attribute* to be returned. The selected type defines the data structure of the attribute. Each attribute type (flag attribute, text attribute, date attribute, etc.) uses a specific field (`flagType`, `textType`, `dateType`, etc.), for the **Subtype**. Specific [Enumerations](/v1/docs/en/core-dynamic-enum-definition) per type ([Flag type](/v1/docs/en/base-flag-types), [Text type](/v1/docs/en/base-text-type), [Date type](/v1/docs/en/base-date-type), etc.) define the values that can be selected as a **Subtype** in each case (see [Business objects and attributes](/v1/docs/en/orchestration-btos-attributes)). **IMPORTANT:** Writing and reading the attribute usually affects one or more field values within the specific data structure for the attribute type. The corresponding fields must – as demonstrated by the examples below – usually be addressed explicitly, so that a value assignment is successful and/or the return value corresponds to the desired result. This can be achieved either by concatenation (see [Chained resolver](/v1/docs/en/core-chained-resolver)) or, for example, in the context of an [Execute with](/v1/docs/en/core-with-actor) event action that defines the attribute as an *alternative reference object*. ## Configuration The [Plural typed attribute resolver](/v1/docs/en/core-typed-attributes-resolver) expects a *reference object* whose data model contains at least one *typed* *attribute type*. | The **Typed attribute** parameter provides a static single selection for the attribute type to be accessed. As long as the context of the configuration does not refer to a specific entity type as a *reference object*, all types of *typed attributes* that the system supports will appear for selection. The [Combobox](/v1/docs/en/fre-combo-box-vo) element offers a search function that takes into account the internal class names of the attributes as well as associated languages from the localization. | ![images/download/attachments/83165608/image2021-10-6_16-15-17-version-1-modificationdate-1633529719166-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-15-17-version-1-modificationdate-1633529719166-api-v2.png) | | --- | --- | | If, on the other hand, the context of the configuration refers to a specific entity type for the *reference object*, then only the attribute types that are explicitly implemented in the relevant data model appear for selection. On the right, a [Check type](/v1/docs/en/core-check-type-rule) (not in the image) points to a [Routing table entry](/v1/docs/en/base-r-routing-table-entry), so that only the four attribute types provided for this entity type appear in the dropdown. | ![images/download/attachments/83165608/image2021-10-6_16-15-47-version-1-modificationdate-1633529750054-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-15-47-version-1-modificationdate-1633529750054-api-v2.png) | | The dropdown for the **Subtype** offers the values of the respective dynamic enumeration (e.g. [Text type](/v1/docs/en/base-text-type)) for selection only when an attribute type is selected in the **Typed attribute** parameter. **IMPORTANT:** If [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) are applicable in the context of a session for the enumeration in question, these also restrict the selection for the **Subtype** in the course of configuration. On the other hand, [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) have no influence on the evaluation of the value resolver at runtime. | ![images/download/attachments/83165608/image2021-10-6_16-16-19-version-1-modificationdate-1633529781395-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-16-19-version-1-modificationdate-1633529781395-api-v2.png) | **CAUTION****:** The selection for the **Subtype** also provides attribute subtypes that are not marked as 'plural' in the dynamic enumeration definition. If a 'singular' **Subtype** is selected, the [Plural typed attribute resolver](/v1/docs/en/core-typed-attributes-resolver) value resolver returns the attribute in question (if any) as the only element of a list at runtime. If no **Typed attribute** is selected, then the return value of the value resolver is always 'no value' (`null`). If a selected **Typed attribute** is not supported by the type of *reference object* present at runtime, the return value is also 'no value' (`null`). If the *reference object* present at runtime supports a selected **Typed attribute**, but the *reference object* does not contain any relevant data, an empty list is returned. ## Examples ### Example of 'write access' | A [Common business object](/v1/docs/en/orchestration-common-bto) represents a 'train' for the handling of rail traffic. Within the train, it should be possible to maintain the sequence of the wagons as a 'Formation'. For each wagon, the wagon type and a unique identifier (**ID**) should be specified. Available **Wagon types** (`WAGON_TYPES`) are already stored in a specially defined dynamic enumeration. On this basis, a [Free enum type](/v1/docs/en/base-free-enum-type) 'Train' (`TRAIN`) has been created, for which the option 'plural' has been set, so that a 'Train' can be treated as a list of 'Wagons'. Each wagon is represented by an instance of the free enumeration attribute 'Train'. The data structure of this attribute type, in addition to the 'Enum value' (`enumValue`) for the **Wagon type**, also provides a text field 'Text value' (`textValue`), which can be used to enter the unique identifier for each wagon. In the example on the right, the elements for the two fields within a data input form have already been labeled as **Wagon type** and **ID** and declared as required fields (*). | ![images/download/attachments/83165608/image2021-10-6_16-17-6-version-1-modificationdate-1633529829080-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-17-6-version-1-modificationdate-1633529829080-api-v2.png) | | --- | --- | Requirement: Whenever the 'New' button is used within a data input form or overview to create a new [Common business object](/v1/docs/en/orchestration-common-bto) of this type, the entry for the first wagon with the type 'Box car' is generated automatically without assigning an ID. Configuration: | An event handler that reacts to the 'New' event (see [Common action event](/v1/docs/en/core-common-action-event)) as a **Triggering event** is configured as shown on the right: - The **Validating rule** uses a [Check type](/v1/docs/en/core-check-type-rule) AND an [Entity property rule](/v1/docs/en/core-entity-property-rule) to ensure that the *reference object* is a [Common business object](/v1/docs/en/orchestration-common-bto) of the relevant type. - As an **Action on passed rule**, a [Set value](/v1/docs/en/core-set-value-actor) event action is executed, which defines (on the left) the target for a value assignment. Here, a [Plural typed attribute resolver](/v1/docs/en/core-typed-attributes-resolver) value resolver first identifies the free enumeration attribute 'Train' (TRAIN), in which 'Free enum attribute' is selected as the **Typed attribute** and 'Train' as the **Subtype**. - The concatenated [List item](/v1/docs/en/core-list-item-resolver) resolver accesses the first entry in the list of attribute instances here per the **Mode** 'Get first' with **Offset** 0. **NOTE:** It is assumed that in connection with the 'New' event no such entry yet exists. If the event triggers another event handling that was executed with higher priority and has already created an entry, this would be updated by the assignment. By switching to another **Mode** ('Add...') this overwriting can be avoided. - Since only the 'Wagon type' is defined, the concatenation to the [Object property](/v1/docs/en/core-property-resolver) 'Enum value' (`enumValue`) is continued. The (right) statically defined wagon type 'Box car' is assigned to this field. | ![images/download/attachments/83165608/image2021-10-6_16-21-7-version-1-modificationdate-1633530069842-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-21-7-version-1-modificationdate-1633530069842-api-v2.png) | | --- | --- | ### Example of 'read access' Following the previous example, when a [Common business object](/v1/docs/en/orchestration-common-bto) of the relevant type is saved, it is checked whether the assembled train contains at least one 'Box car'. If this is not the case, the transaction is aborted with an error message. Configuration: | An event handler that reacts to the 'Change' and 'Create' events (see [Common action event](/v1/docs/en/core-common-action-event)) is configured as follows: - The **Validating rule** (not shown in the image) checks, as above, whether the *reference object* is a [Common business object](/v1/docs/en/orchestration-common-bto) of the relevant type. - As an **Action on passed rule**, an [If then else](/v1/docs/en/core-if-then-else-actor) event action is used here to check whether a 'Box car' is included in the list of wagons in the typed plural attribute 'Train' (`TRAIN`): - The check is based on an [Entity property rule](/v1/docs/en/core-entity-property-rule) that uses [Is empty](/v1/docs/en/core-is-empty-matcher) as [Matchers](/v1/docs/en/core-i-value-matcher). The first match ('Box car') in the list of all wagons is determined as the 'data source' for the entity property rule: - The list of all wagons returns a [Plural typed attribute resolver](/v1/docs/en/core-typed-attributes-resolver) for the **Typed** **attribute** 'Free enum attribute' with the **Subtype** 'Train' (`TRAIN`). - The concatenated [Rule list resolver](/v1/docs/en/core-list-rule-resolver) checks whether the 'Enum value' refers to the searched wagon type 'Box car'. Since the **Resolve all as list** option is deselected, (only) the first match is returned. - If no match exists, 'no value' is returned, and the [Is empty](/v1/docs/en/core-is-empty-matcher) condition of the [Entity property rule](/v1/docs/en/core-entity-property-rule) is met. Then the [Abort](/v1/docs/en/core-abort-actor) below is triggered and the transaction is rolled back. The 'Save' is therefore ineffective and the user is shown a *Semantic Exception*, which is assigned the localization text for the error code NO_BOXCAR as a message here. | ![images/download/attachments/83165608/image2021-10-6_16-25-8-version-1-modificationdate-1633530310575-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-6_16-25-8-version-1-modificationdate-1633530310575-api-v2.png) | | --- | --- |