--- title: "Rule list resolver" slug: "core-list-rule-resolver" updated: 2026-04-23T13:41:45Z published: 2026-04-23T13:41:45Z canonical: "docs.lobstersoftware.com/core-list-rule-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. # Rule list resolver > [!NOTE] > **Value resolver – Abstract** > > **Purpose:** Returns either *exactly one entry* or all entries from the *input value* that match the configurable *acceptance criteria*. > > > [!TIP] > > Tooltip > > > > - **Usage**: The entries of a list provided as *input value* (see note below) are checked against the configured acceptance criteria to determine either the first or *all* (option **Resolve all as list**) entries matching these criteria as return value. > > - **Parameter**: > > - The optional **Element type** parameter defines a specific class as a static single selection, which can be used as an *acceptance criteria* like a [Check type](/v1/docs/en/core-check-type-rule). > > - Optionally, a rule can be defined as (possibly additional) *acceptance criteria*, which is applied to each entry from the *input value*. > > - The **Resolve all as list** option controls whether only the first or *all* matches for the optionally configurable *acceptance criteria* should be returned. > > - **NOTE:** If the *input value* is not a list but a single value, it is treated as if it were the only entry in a list. ![images/download/attachments/78256069/image2022-9-1_9-43-51-version-1-modificationdate-1662018231364-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-43-51-version-1-modificationdate-1662018231364-api-v2.png) The [Rule list resolver](/v1/docs/en/core-list-rule-resolver) returns either *exactly one entry* or *all entries* from the *input value* that match the optionally configurable *acceptance criteria*, depending on the **Resolve all as list** option: - The optional selection for the **Element type** acts as an *acceptance criteria* in the sense of a [Check type](/v1/docs/en/core-check-type-rule) at runtime and influences the selection options for rule types and value resolvers in the configuration for the *rule*. - Without a selection for the **Element type**, no [Check type](/v1/docs/en/core-check-type-rule) takes place for the entries from the *input value*. - The optional addition of a rule via the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(58).svg) icon, defines a freely definable *acceptance criterion* for entries from the *input value*. - Without defining a *rule*, all entries are considered acceptable as long as they match the **Element** **type** defined, if any. --- **IMPORTANT:** If the *input value* is not a list but a single value, it is treated as if it were the only entry in a list. --- The **Resolve all as list** option controls the return value: - If the option is unchecked (default), then the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) returns the first entry from the *input value* that meets all configured *acceptance criteria*. - If the option is checked, then the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) returns all entries from the *input value* that meet all configurable *acceptance criteria*. Regardless of the **Resolve all as list** option, the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) returns "no value" (`$null`) if no entry from the *input value* meets all configured *acceptance criteria*. - If the option **Resolve all as list** does not return a match, the return value is not an "empty list" (`[]`). Therefore, a [Default value](/v1/docs/en/core-default-value-resolver) value resolver can be concatenated in each case to define a single default value or "default list" for this case. ## Configuration | The **Element type** selection field allows a static single selection of a specific type or a parent class (in the sense of a [Check type](/v1/docs/en/core-check-type-rule)) that covers different specific types. As shown in the image, a search function is provided for both the internal names and the localization applicable in context. If an **Element type** is selected, only entries from the *input value* that would pass a [Check type](/v1/docs/en/core-check-type-rule) against the selected class are considered acceptable. Without selecting an **Element type**, all entries from the *input value* are considered acceptable. | ![images/download/attachments/78256069/image2022-9-1_9-46-52-version-1-modificationdate-1662018413015-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-46-52-version-1-modificationdate-1662018413015-api-v2.png) | | --- | --- | | The **Resolve all as list** option can be checked to obtain a list of all entries from the *input value* that meet all *acceptance criteria* configured by the other optional parameters as return value. --- A click on the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(58).svg) icon initiates the configuration of a rule, which can then be expanded to any complexity by AND and OR conjunctions. In the example on the right, an [Entity property rule](/v1/docs/en/core-entity-property-rule) was selected to check for entries with the selected **Element type** "City" (see [Cities](/v1/docs/en/base-city)) whether their "County code" (`countyCode`) field is filled (see [Is empty](/v1/docs/en/core-is-empty-matcher) and [not (Matcher)](/v1/docs/en/core-not-matcher). --- **NOTE:** If, due to the context in the configuration, the *input value* is defined as a list of cities (`Ort[]`), the **Element type** "City" does not have to be explicitly selected to obtain the "matching" field selection in the [Object property](/v1/docs/en/core-property-resolver) value resolver dropdown. However, the additional "declaration" via the parameter does not hurt then either. The specification of the **Element type** is decisive, if thereby only a subset of entries from a heterogeneous list (with objects of different classes) is considered to be acceptable. | ![images/download/attachments/78256069/image2022-9-1_9-48-38-version-1-modificationdate-1662018518254-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-48-38-version-1-modificationdate-1662018518254-api-v2.png) | ## Examples ### Demonstration example: Using the "Element type" to restrict entries according to type/class affiliation | The configuration shown on the right serves exclusively to demonstrate the effects of different parameters for the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) with the same *input value*. This is defined here in the **Object Resolver** parameter of an [Execute with](/v1/docs/en/core-with-actor) event action via a [Create list](/v1/docs/en/core-create-list-resolver) value resolver as a list with statically determined entries of different data types: - The first value is the static `Long` value `123`. - The second value is the static decimal number `3.57`. - The third value is the static `String` value `0815`. This list is passed by concatenation as *input value* to a [Rule list resolver](/v1/docs/en/core-list-rule-resolver). The table compares different parameters and the resulting output (as a string image of the return value). In the configuration, a [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action generates this string image by outputting the return value of the value resolver as the **Message** text. The **Title** of the message indicates the number of entries in the returned list. | ![images/download/attachments/78256069/image2022-9-1_9-50-34-version-1-modificationdate-1662018635032-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-50-34-version-1-modificationdate-1662018635032-api-v2.png) | | --- | --- | | The following table lists different parameters for the [Rule list resolver](/v1/docs/en/core-list-rule-resolver), which are based on the diagram shown on the right: - An **Element type** is selected or not. - The option **Resolve all as list** is checked or not. - A *rule* is not configured. **NOTE:** As the diagrams on the right show, the option **Resolve all as list** together with the selection for the **Element type** influences the data type for the return value. In this specific case, a list of numerical values (`Number[]`) is expected as the data type for the return value at the top (with the **Resolve all as list** option checked), while only a single numerical value (`Number`) is expected at the bottom. | "All `Number` values as a list":![images/download/attachments/78256069/image2022-9-1_9-52-28-version-1-modificationdate-1662018748523-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-52-28-version-1-modificationdate-1662018748523-api-v2.png) "Only first `Number value`":![images/download/attachments/78256069/image2022-9-1_9-53-7-version-1-modificationdate-1662018788034-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-53-7-version-1-modificationdate-1662018788034-api-v2.png) | Runtime examples with different parameter settings: | Parameters in the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) | Output via [Show alert (Popup)](/v1/docs/en/core-popup-actor) | Comment | | --- | --- | --- | | **Element type** | **Option:** **"Resolve all as list"** | **Title (**`length`**)** **(Number of list entries)** | **Message** **(String[-image])** | | `<No selection>` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(37).svg) | 3 | [123, 3.57, 0815] | Without an element type, all entries are considered acceptable. | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(31).svg) | `$null` | 123 | | `Long` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(37).svg) | 1 | [123] | Only the first value is explicitly defined as `Long`. The fact that the string "0815" *could be* converted to the `Long` value `815` is irrelevant. | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(31).svg) | `$null` | 123 | | `Double` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(37).svg) | 1 | [3.57] | Only the second value is explicitly defined as `Long`. The fact that the `Long` value "123" *could be* converted to the `Double` value `123.0` is irrelevant. | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(31).svg) | `$null` | 3.57 | | `String` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(37).svg) | 1 | [0815] | Only the third value is explicitly defined. A conversion of the *numerical values* as "string image" does not take place. | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(31).svg) | `$null` | 0815 | | `Number` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(37).svg) | 2 | [123, 3.57] | The parent class `Number` covers `Long` and `Double`, but not `String`. | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(31).svg) | `$null` | 123 | ### Typical use case: "Select" entries via a rule for a characteristic An association criteria applies exactly when the "registered company" ([Company of session](/v1/docs/en/base-session-company-account-value)) belongs to more than one *group*. Membership in a *group* is formally established by the fact that in the company account the "Parent companies" (`parentCompanies`) list field refers to a parent company account with the [Company meta type](/v1/docs/en/base-company-meta-type) "Group" (`GROUP`). Runtime example: The company account of "ZWORX Ltd." refers to two *groups* ("XFLOW – Key Accounts" and "EMEA") as **Parent** **companies** in the multiple selection for parent companies. - To clarify the relationships, the label in the service configuration for the [Combobox](/v1/docs/en/fre-combo-box-vo) element has been adapted here so that instead of the address data (see parent company "Vortex Inc.") the **Meta type** (*here*: "Group") of the parent company is displayed if this is not "Company" (`COMPANY`). ![images/download/attachments/78256069/image2022-9-1_9-57-38-version-1-modificationdate-1662019058718-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-57-38-version-1-modificationdate-1662019058718-api-v2.png) Configuration: | The screenshot on the right shows the configuration for an association criteria that applies exactly when the [Company of session](/v1/docs/en/base-session-company-account-value) is subordinate to more than one company account with the [Company meta type](/v1/docs/en/base-company-meta-type) "Group" (`GROUP`): - The primary data for the check here is provided by the [Company of session](/v1/docs/en/base-session-company-account-value) value resolver, namely the company account of the logged-in company. - The concatenated [Object property](/v1/docs/en/core-property-resolver) value resolver accesses the "Parent companies" (`parentCompanies`) field of this company account and returns the list of `Long` values stored in it, which refer to the IDs of the parent company accounts. - The concatenated [Rule list resolver](/v1/docs/en/core-list-rule-resolver) filters out from this list the subset of IDs that refer to *group* company accounts: - The **Resolve all as list** is checked, because for our check criterion the number of all parent *groups* is decisive. - In order for the [Entity property rule](/v1/docs/en/core-entity-property-rule) to check the "Meta type" (`metaType`) of a parent company, the complete company account must first be obtained starting from the ID. This is done by the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver, which is concatenated on the left side with the [Object property](/v1/docs/en/core-property-resolver) value resolver for the "Meta type" field. - On the right side of the [Equals](/v1/docs/en/core-equals-matcher) comparison, the relevant [Company meta type](/v1/docs/en/base-company-meta-type) "Group" (`GROUP`) is statically selected. - The actual check criteria is mapped to the outer [Entity property rule](/v1/docs/en/core-entity-property-rule) (per [Compare with](/v1/docs/en/core-compareable-matcher) "> (greater than)"). The number of entries (`length` field) in the return value of the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) is compared with the comparison value `1`. | ![images/download/attachments/78256069/image2022-9-1_9-59-50-version-1-modificationdate-1662019190504-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_9-59-50-version-1-modificationdate-1662019190504-api-v2.png) | | --- | --- | ### Typical use case: Select a specific "Target value" from a list At the push of a button, an event handler determines and displays via a notification how to reach the user who last changed a specific entity (*input value* in the data context) by mobile phone. A search is made in the "Communication information" of the relevant user for an entry with the [Communication type](/v1/docs/en/base-communication-type) "Mobile" (`MOBILE`) and the context "`24/7`" (text key). Runtime example: A particular user (with the identifier "Querificus") has the following "Communication infos": - The first entry should be displayed here, since this is relevant according to **Type** and **Context**. ![images/download/attachments/78256069/image2022-9-1_10-0-52-version-1-modificationdate-1662019253147-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_10-0-52-version-1-modificationdate-1662019253147-api-v2.png) ![images/download/attachments/78256069/image2022-8-31_20-58-34-version-1-modificationdate-1661972314643-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-31_20-58-34-version-1-modificationdate-1661972314643-api-v2.png) Configuration: | The screenshot on the right shows the configuration for an event handler that responds to a [Custom action event](/v1/docs/en/core-custom-action-events) `XF_CALL_LAST_MODIFIER` set up as a **Triggering event**. The **Validating rule** is limited to a [Check type](/v1/docs/en/core-check-type-rule) that ensures that an entity is present in the context of the event. This should ensure that the `lastModifierId` field exists and refers to the ID of a user, if applicable. **NOTE:** The possibility that [Guest users](/v1/docs/en/base-guest-user) can change an entity is not to considered here. An [Execute with](/v1/docs/en/core-with-actor) event action is used here as the **Action on passed rule**, since starting from the `lastModifierId` from the entity in the context, the relevant user account is set as the *alternative reference object*. This is made possible by the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver concatenated with the ID. With the user account as the context, a [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action is executed that first accesses the "username" (`username`) field in the **Title** within a [Concat strings](/v1/docs/en/core-concat-string-resolver), which should identify the user in the notification. The **Message** also uses the [Concat strings](/v1/docs/en/core-concat-string-resolver) value resolver to output the relevant phone number in conjunction with a caption. This is obtained via a concatenation of value resolvers, in which the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) has the decisive role: - First, the [Object property](/v1/docs/en/core-property-resolver) value resolver must access the `address` field of the user account present as an *alternative reference object*. - The concatenated [Plural attributes](/v1/docs/en/orchestration-plural-attributes) value resolver returns the list of *all* communication information within that address. - The concatenated [Rule list resolver](/v1/docs/en/core-list-rule-resolver) searches for the first match in this list (option **Resolve all as list** is unchecked), for which the two criteria AND-linked in the *rule* are true: - The first [Entity property rule](/v1/docs/en/core-entity-property-rule) checks whether the [Communication type](/v1/docs/en/base-communication-type) "Mobile" (`MOBILE`) is present. - The second [Entity property rule](/v1/docs/en/core-entity-property-rule) checks whether the text key `24/7` is entered as "context" (`communicationContext`). - If the address contains communication information that meets both criteria, the concatenated [Object property](/v1/docs/en/core-property-resolver) value resolver can then contribute its "value" (`communicationValue`) field for the text of the **Message**. **NOTE:** In the example, "error handling" has been omitted for the case that no value is specified for the "24/7 mobile number" in the user account. The [Default value](/v1/docs/en/core-default-value-resolver) resolver could be used to assign information text like "n/a" or the access method demonstrated in the example could be used to search for communication information with a different specification (e.g. type "MOBILE" and context "PRIVATE", see example data above) as a replacement. | ![images/download/attachments/78256069/image2022-9-1_10-3-17-version-1-modificationdate-1662019397999-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_10-3-17-version-1-modificationdate-1662019397999-api-v2.png)![images/download/attachments/78256069/image2022-9-1_10-4-11-version-1-modificationdate-1662019451504-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-1_10-4-11-version-1-modificationdate-1662019451504-api-v2.png) | | --- | --- |