--- title: "Input object (type safe)" slug: "core-root-entity-resolver" updated: 2026-04-23T08:41:39Z published: 2026-04-23T08:41:39Z canonical: "docs.lobstersoftware.com/core-root-entity-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. # Input object (type safe) *See also:* [Check type](/v1/docs/en/core-check-type-rule), [Variable](/v1/docs/en/core-storage-value) > [!NOTE] > **Value resolver – Abstract** > > **Purpose:** Checks if the *input value* is compatible with the given **Type** and if not returns "no value" (`$null`). When successful, the return value varies depending on the input value type and the target type. > > > [!TIP] > > Tooltip > > > > - **Usage**: Depending on the combination of input value type and the **Type** selected in the configuration, the value resolver fulfills one of the following purposes: > > - Type conversion: If the **Type** defines a simple value, it will try to convert the input value to this **Type**. > > - Look up enumeration value: If the **Type** defines a static or dynamic enumeration and the *input* *value* is a `String`, then the *input value* is used as a key to look up an enumeration value by its `name`. > > - Look up entity: If the **Type** defines a specific entity type and the *input value* defines a `Long` value, then the *input value* is used as a key to look up an entity via its `id`. > > - Check type: If none of the above cases apply, the *input value* is checked against the specified **Type** in a similar way to the [Check type](/v1/docs/en/core-check-type-rule). If successful, the *input value* is returned. > > - If the check, type conversion or lookup fails, `$null` is returned. > > - **Parameter**: > > - The **Type** parameter defines the class against which the *input value* is checked or the target type for a type conversion or retrieval of enumeration values or entities. Without any selection the return value is always `$null`. > > - The **Is collection of** option defines that the input value must be a list that does not contain any entries that do not correspond to the selected **Type**. A list without entries is considered to be "type neutral", i.e. it passes any check with the option **Is collection of**. > > - **NOTE:** The lookup and type conversion functions only take effect for single values as *input value* and not for all entries of a list. If required, the [Collect values](/v1/docs/en/core-collect-resolver) value resolver helps. ![images/download/attachments/200673324/image-2025-2-14_10-19-16-version-1-modificationdate-1739524755828-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-19-16-version-1-modificationdate-1739524755828-api-v2.png) The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver attempts to map the *input value* to the specified **Type** and supports four different use cases: - Type conversion to simple values (`String`, `Long`, etc.). - Lookup of an enumeration value from a static or dynamic enumeration by text key. - Lookup of an entity by ID. **IMPORTANT:** Does NOT work in a [Client Workflow](/v1/docs/en/frebehav-client-workflow)! - Check type (checks the class affiliation of a data object). The possible applications are manifold. The following diagram provides an overview of the variants. For specific configurations, see "Examples" (below). **NOTE:** If the *input value* is present in a variable, the [Variable](/v1/docs/en/core-storage-value) value resolver can often be used directly instead of the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver for the described purposes. This supports the same parameters and similar conversion logics. The most important difference is the value of a variable is processed and not the *input value*. However, an important difference is that the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver without specification for the **Type** always returns `$null`, whereas with the [Variable](/v1/docs/en/core-storage-value) value resolver the "type" selection can be omitted to get the value of the variable. **CAUTION****:** The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver ignores any access restrictions when accessing entities by ID – as does the [Variable](/v1/docs/en/core-storage-value) value resolver. Unlike in the context of a [Search](/v1/docs/en/core-search), for example, access is explicitly granted without regard to role permissions (see [Role](/v1/docs/en/base-role-value)) for the entity type and ownership rights or [Company authorizations](/v1/docs/en/base-company-release) for the specific entity. Specifically, this allows, for example, unrestricted (read) access to any entity "known" by ID (e.g., a user account registered as `creator` in an entity"s data) without having to switch to a specific role or the appropriate company in the context of a [Run as](/v1/docs/en/base-run-as-actor) event action. Corresponding accesses are therefore also possible in execution contexts in which a company or role change is not technically possible (e.g. [Association criteria](/v1/docs/en/core-association-criteria), [Custom overviews](/v1/docs/en/administration-designer-client-preferences-overview), [Search API](/v1/docs/en/common-search-api), etc.). | **Type conversion to simple values** | | --- | | **Input value type** | **Target type** | **Condition** | **Return value** | | Simple value *or* Data object | Simple value | Conversion of the input value to the target type possible. | Value converted to "target type" | | Conversion of the input value to the target type is not possible. | No value (`$null`) | | Example: Instead of a `Timestamp` value (e.g. `lastModified` field of an entity) the `Long` value (number of milliseconds since 01.01.1970 UTC) is needed for a calculation. | | `Timestamp` | `Long` | `Timestamp` can be converted to `Long` | (e.g.) `1658833400122` | | `Timestamp` | "Date with time" (`DateTime`) | `Timestamp` cannot be converted to `DateTime` | No value (`$null`) | | **Lookup of an enumeration value from a static or dynamic enumeration by text key** | | **Input value type** | **Target type** | **Condition** | **Return value** | | Text value (`String`) | Class for values of a static or dynamic enumeration. | *Input value* corresponds to a key value (`name`) for a value of the enumeration. | Enumeration value | | *Input value* is not considered a key value for a value of the enumeration. | No value (`$null`) | | Example: A [Substring](/v1/docs/en/core-sub-string-resolver) is obtained from a field value as a "country indicator", for which the matching [Country](/v1/docs/en/core-country) is determined from the dynamic enumeration. | | (e.g.) `MT` | [Country](/v1/docs/en/core-country) (`Country`) | `MT` is the name of a value in the dynamic enumeration [Country](/v1/docs/en/core-country) (→"Malta"). | [Country](/v1/docs/en/core-country) "Malta" | | (e.g.) `XY` | `XY` is not a name in the dynamic enumeration [Country](/v1/docs/en/core-country). | No value (`$null`) | | **Lookup of an entity by ID ◄ Does NOT work in a client workflow!** | | **Input value type** | **Target type** | **Condition** | **Return value** | | `Long` value | Entity type | The *input value* refers to the ID (`id`) of an entity of the target type. | Entity as "input object" (will be "fetched" by the server into the current context, if not already present there). | | *Input value* is not considered a key value for a value of the enumeration. | No value (`$null`) | | Example: Starting from the "Owner" field (`ownerId`), the complete account of the company in question (see [Companies/Clients](/v1/docs/en/base-company-account)) is used. | | (e.g.) `ownerId="21"` | "Company account" (`CompanyAccount`) | A company account with `id` 21 exists. | "Company account" with the `id=21` | | (e.g.) `ownerId="404"` | There is no company account with `id 404`. | No value (`$null`) | | **Check type: Checks the class affiliation of a data object** | | Input value type | Target type | Condition | Return value | | Simple value *or* Data object | Class | Data object is compatible with the target type. | Data object (identical to the *input value*, i.e.not converted to the class specified as the target type). | | Data object not compatible with target type. | No value (`$null`) | | Example: The [User of session](/v1/docs/en/base-session-user-value) value resolver should be checked to see if it returns a user or a guest user. **NOTE:** The following scheme also shows the effect of a check against the parent class "Interface > User" (`IUser`) as a **Type** covering [Users](/v1/docs/en/base-user) and [Guest users](/v1/docs/en/base-guest-user). Even if the subsequent configuration context (e.g. in a concatenated [Object property](/v1/docs/en/core-property-resolver) value resolver) only supports the features defined for the "Interface class" (a narrowly defined selection from the intersection of the fields for [Users](/v1/docs/en/base-user) and [Guest users](/v1/docs/en/base-guest-user)), the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver still always returns the complete data object of the respective *specific* entity type ([Users](/v1/docs/en/base-user) or [Guest users](/v1/docs/en/base-guest-user)). Also, the `entityClass` variable is automatically populated with the class name of the *specific* entity type, so that a subsequent [Check type](/v1/docs/en/core-check-type-rule) or evaluation with another instance of the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver can still differentiate the membership of an entity to the classes covered by the parent "Interface class" (whether *specific* or not). | | Return value of [User of session](/v1/docs/en/base-session-user-value) | [Users](/v1/docs/en/base-user) (`User`) | A user is logged in. | The logged in user account. | | A guest user is logged in. | No value (`$null`). | | "Interface > User" (`IUser`) | A user is logged in. | The logged in user account. | | A guest user is logged in. | The logged in guest user account. | | [Guest users](/v1/docs/en/base-guest-user) (`GuestUser`) | A guest user is logged in. | The logged in guest user account. | | A user is logged in. | No value (`$null`). | ## Configuration The value resolver always expects an *input value*. Without an *input value* (or with the *input value* "no value", i.e.: `$null`) the return value is always `$null`. | The **Type** parameter defines the class (or data type or entity type) that is the target of a type conversion, check type, or data retrieval, depending on the purpose. In the selection field for the **Type**, a search function (see image on the right) makes it easier to find the appropriate class for the respective purpose. This searches the localization texts of the classes as well as the internally used unique class names. **IMPORTANT:** As the [+] symbol indicates, the selection field also allows free text entries, which are then interpreted as the internal class name. If a search term is entered very quickly and then the "Enter" key is pressed immediately to select the supposed match, the search term may be interpreted as an entry for an internal class name, as in the following example. Immediately after entering the search text long for the **Type**, the "Enter" key is pressed immediately. If the search function had not yet "found" the desired class "Long" (`java.lang.Long`) at this point, the parameter (see image on the right) refers nonsensically to an unknown class (`long`). If the desired result of the search function is already available when pressing the "Enter" key, the desired "Long" class (`java.lang.Long`) appears in the selection field. For most classes, the label does not appear completely in the selection field. In case of any doubt, please refer to the tooltip that appears when the mouse cursor is moved over the label. | ![images/download/attachments/200673324/image-2025-2-14_10-22-53-version-1-modificationdate-1739524973186-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-22-53-version-1-modificationdate-1739524973186-api-v2.png) | | | | --- | --- | --- | --- | | FALSE: ![images/download/attachments/200673324/image-2025-2-14_10-26-52-version-1-modificationdate-1739525211758-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-26-52-version-1-modificationdate-1739525211758-api-v2.png) | | | | CORRECT: ![images/download/attachments/200673324/image-2025-2-14_10-27-50-version-1-modificationdate-1739525269990-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-27-50-version-1-modificationdate-1739525269990-api-v2.png) | | | | The option **Is collection of** (by default "unchecked") can be selected to specify, in conjunction with the **Type**, that the "target type" should be a list of elements corresponding to the class **Type**. - If at least one list entry in the *input value* is not compatible with the class selected as **Type**, then the return value is `$null`. - If the *input value* does not contain a list, the return value is `$null`. | ![images/download/attachments/200673324/image-2025-2-14_10-43-18-version-1-modificationdate-1739526197432-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-43-18-version-1-modificationdate-1739526197432-api-v2.png) | | | | **IMPORTANT:** The **Is collection of** option does not cause "type conversions" or "enumeration requests" to be executed for all elements of a list in the *input value* (see "FALSE" below). However, in conjunction with the [Collect values](/v1/docs/en/core-collect-resolver) value resolver, the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver can also be used for this purpose. The image on the right shows how a list of user account IDs can be used to obtain a list of the [Users](/v1/docs/en/base-user) (accounts) in question. | FALSE: ![images/download/attachments/200673324/image-2025-2-14_10-49-33-version-1-modificationdate-1739526572412-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-49-33-version-1-modificationdate-1739526572412-api-v2.png) This "misconfiguration" effectively checks whether the `entityIds` variable contains a list of users. In fact, this is defined as a list of `Long` values (see also type hint `Long[]`at the bottom of the value resolution chain. The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver will therefore always return `$null` only. | | CORRECT: ![images/download/attachments/200673324/image-2025-2-14_10-48-59-version-1-modificationdate-1739526538524-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-48-59-version-1-modificationdate-1739526538524-api-v2.png) **NOTE:** [Collect values](/v1/docs/en/core-collect-resolver) ignore `$null` values. If there are not [Users](/v1/docs/en/base-user) for all IDs listed in the `entityIds` variable, the return value will contain fewer elements than the variable and not `$null` values instead of the respective entries. | | | ## Examples ### Example: Type conversion to simple values Using "Created" which is automatically registered for each entity in **Lobster Data Platform/Orchestration** in the `created` field, a simple statistic is created for a specific entity type (*here*: "ITEM"), which determines the number of all existing entities of the type and compares the duration of the time span in which they were created. Runtime example: | A [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action informs (e.g. whenever an appropriately authorized user creates a new "ITEM") the current state of the statistics for that entity type. | ![images/download/attachments/200673324/image-2025-2-14_9-23-29-version-1-modificationdate-1739521408880-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-23-29-version-1-modificationdate-1739521408880-api-v2.png) | | --- | --- | Configuration: The "raw data" for the statistics can be obtained by a [Tuple search](/v1/docs/en/core-tuple-search), which analogously maps the following SQL statement: ```plaintext SELECT COUNT(*) AS COUNT_items, MIN(created) as MIN_created, MAX(created) AS MAX_created FROM items [WHERE ...] ``` The return value is a single "row" or, in a suitably parameterized [Search (Event action)](/v1/docs/en/core-search-actor), a client object with the `COUNT_items` (`Long`)*,* `MIN_created` (`Timestamp`) and `MAX_created` (`Timestamp`) fields. | A simple difference calculation is required to specify the time span between the creation date of the oldest and the most recent ITEM entities that meet search criteria not specified here. The calculation is done based on the fields for the projections `MIN_created` and `MAX_created` in the result of the [Tuple search](/v1/docs/en/core-tuple-search) by a [Calculate value](/v1/docs/en/core-calculate-value-resolver) value resolver. So that the data type can be calculated, it must first be converted into a numeric data type. The image shows how the `Timestamp` value from the `MIN_created` field is converted to a `Long` value via the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver in the definition for the `EARLIEST` variable. The same procedure is used to assign the `Long` value for the `Timestamp` from the `MAX_created` field to the `LATEST` variable. The `Long` values give the date value in milliseconds since 01.01.1970 (UTC), so that the [Time unit](/v1/docs/en/core-time-unit) for the difference must still be converted from milliseconds (`ms`) to the target unit days (`D`) and rounded to whole days. For details on the conversion see [Calculate value](/v1/docs/en/core-calculate-value-resolver)). | ![images/download/attachments/200673324/image-2025-2-14_10-10-39-version-1-modificationdate-1739524239117-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-10-39-version-1-modificationdate-1739524239117-api-v2.png) | | --- | --- | ### Example: Looking up an enumeration value by text key | In an order form, users should be able to enter a "Promotion code" as free text to receive special conditions: ![images/download/attachments/200673324/image-2025-2-14_10-13-41-version-1-modificationdate-1739524420790-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-13-41-version-1-modificationdate-1739524420790-api-v2.png) In **Lobster Data Platform/Orchestration**, a list of valid promotion codes is stored as dynamic enumeration "Promotion code" (`PROMOCODE`) (see screenshot on the right). | ![images/download/attachments/200673324/image-2025-2-14_10-15-8-version-1-modificationdate-1739524507888-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-15-8-version-1-modificationdate-1739524507888-api-v2.png) | | --- | --- | | ![images/download/attachments/200673324/image-2025-2-14_10-18-3-version-1-modificationdate-1739524682685-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_10-18-3-version-1-modificationdate-1739524682685-api-v2.png) - Clicking on the "Promotion code" button in the header of the order input form opens the *prompt* (see above). - If the entered code matches one of the internal names (see "Name" in the list on the top right), then the corresponding enumeration value should be added to the plural free enumeration attribute "Order options", which displays the input form as a read-only [Multiselect combobox](/v1/docs/en/fre-multi-select-combo-box-vo). - If the code is invalid, the user should be informed by an error message. **NOTE:** The workflow could be simplified by giving the user direct access to the [Multiselect combobox](/v1/docs/en/fre-multi-select-combo-box-vo) for the "Order options". However, the user would then be offered all legitimate "Promotion codes" to choose from in the dropdown. However, these are naturally made known exclusively and selectively via dedicated marketing channels. | Configuration: | The "Promotion code" button triggers a [Custom action event](/v1/docs/en/core-custom-action-events) (`XF_CHECK_PROMOCODE`), which is given the (volatile) data of the order as *input value*. The event handling shown on the right reacts to this **Triggering event**. If the [Check type](/v1/docs/en/core-check-type-rule) in the **Validating rule** (not shown in the image) recognizes the *input value* as an "Order", the following actions are executed: - The *prompt* and matching of the input with the codes legitimized via the custom dynamic enumeration "Promotion code" (`PROMOCODE`) can be done via a concatenation of value resolvers directly in the [Entity property rule](/v1/docs/en/core-entity-property-rule) of an [If then else](/v1/docs/en/core-if-then-else-actor) event action: - The [User prompt](/v1/docs/en/frebehav-user-prompt) value resolver defines the *prompt* and returns the user"s *input* as the return value. - The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver converts the user’s *input* into a value of the dynamic enumeration "Promotion code". If the *input* does not appear as an internal "Name" in this enumeration, the return value is `$null`. Otherwise the enumeration value (of `PROMOCODE` type) is returned. - The concatenated [Store value as variable](/v1/docs/en/core-store-value-resolver) value resolver "stores" the result of the type conversion for assignment (if successful). - If the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver confirms the *input* as a "Promotion code" enumeration value, then the [Set value](/v1/docs/en/core-set-value-actor) event action transfers the value of the `promoCode` variable to a newly added [List item](/v1/docs/en/core-list-item-resolver) (not shown in the image) of the free enumeration attribute "Order options" in the order. - If the *input* does not refer to a legitimate "Promotion code", then a warning with a localizable error text (`error/INVALID_PROMOCODE`) is triggered by [Abort](/v1/docs/en/core-abort-actor). | ![images/download/attachments/200673324/image2022-8-1_18-51-59-version-1-modificationdate-1739457161030-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-1_18-51-59-version-1-modificationdate-1739457161030-api-v2.png) | | --- | --- | ### Look up an entity by ID > [!WARNING] > **IMPORTANT:** > > This functionality is not supported in a [Client Workflow](/v1/docs/en/frebehav-client-workflow)! Event handling is intended to provide the logged-in user with information about all company accounts in the context of which they can log into **Lobster Data Platform/Orchestration** through a series of notifications. The function is intended to make it easier for users whose role does not grant direct access to the "Company overview" (see [Creating and managing company accounts](/v1/docs/en/base-company-account-view)) to run tests that concern the specific runtime behavior of **Lobster Data Platform/Orchestration** in the context of different companies. | The runtime example on the right shows how the output should look: - The [Company meta type](/v1/docs/en/base-company-meta-type) of the company should appear in the "Title" of the notification. In the example this is either "COMPANY" or "GROUP". - The "Message" below should contain the following information: - The ID of the company account in question. - Selected address data of the company ("Name", "City", "Country"). - The default time zone (optional). - All company types (see [Company type](/v1/docs/en/base-company-type)) assigned to the company account. The particular challenge for obtaining this data is that the user account ([User of session](/v1/docs/en/base-session-user-value)) used in a session refers to these company accounts in the "Companies" (`companies`) field, but their detailed data is not embedded in the data model for [Users](/v1/docs/en/base-user). Therefore, they must be explicitly called from the **Lobster Data Platform/Orchestration** server for the desired output. | Runtime example: ![images/download/attachments/200673324/image-2025-2-14_9-18-20-version-1-modificationdate-1739521099378-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-18-20-version-1-modificationdate-1739521099378-api-v2.png) | | --- | --- | Configuration: | Event handling triggered by a [Custom action event](/v1/docs/en/core-custom-action-events) set up is configured as shown on the right: - The [For each loop](/v1/docs/en/core-for-each-entity-actor) iterates over the list of relevant company account IDs from the account of the logged in user. This is determined via the [User of session](/v1/docs/en/base-session-user-value). **NOTE:** The concatenated [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver is only used here so that the "Companies" (`companies`) field can be selected via a dropdown in the following [Object property](/v1/docs/en/core-property-resolver) value resolver, which would not be the case for the parent class "Interface > Users". Unless [Guest users](/v1/docs/en/base-guest-user) triggers event handling, *this* [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver effectively just improves transparency and ease of use during configuration. - The access to [Companies/Clients](/v1/docs/en/base-company-account) starting from the `Long` values listed in the `companies` field for their IDs is achieved here inside the loop via the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver with the **Type** "Company account" in the **Object Resolver** parameter of an [Execute with](/v1/docs/en/core-with-actor) event action. In their action block, the respective company account is considered as a *reference object*, so that details of this company account (and its address) can be "read" in the [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action for the **Title** and **Message** parameters. **NOTE:** The **Message** is defined here using a [Template](/v1/docs/en/core-template-content-builder) value resolver, via which the desired output format can be represented more efficiently than via an aggregate of value resolvers from the [String processing](/v1/docs/en/orchestration-resolvers-text) category, with which a comparable result could undoubtedly be achieved. | ![images/download/attachments/200673324/image-2025-2-14_9-20-10-version-1-modificationdate-1739521210292-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-20-10-version-1-modificationdate-1739521210292-api-v2.png) | | --- | --- | | ![images/download/attachments/200673324/image-2025-2-14_9-21-13-version-1-modificationdate-1739521272855-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-21-13-version-1-modificationdate-1739521272855-api-v2.png) | ### Check type: Checking the class membership of a data object In an event handler, the user should be able to enter one or more numeric values (comma-separated, if necessary) to be used as a positive list for a [Search (Event action)](/v1/docs/en/core-search-actor). In a typical use case, for example, [Orders](/v1/docs/en/ord-order) are determined via article numbers of the [Products](/v1/docs/en/base-product) referenced in the contained order items.. Even if [Products](/v1/docs/en/base-product) in **Lobster Data Platform/Orchestration** could technically be identified by alphanumeric article numbers at any time, in the use case the [Search (Event action)](/v1/docs/en/core-search-actor) should explicitly be executed only if the user has entered numeric values. Runtime example: ![images/download/attachments/200673324/image-2025-2-14_9-15-30-version-1-modificationdate-1739520929460-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-15-30-version-1-modificationdate-1739520929460-api-v2.png) Configuration: | In the header of an [Execute with](/v1/docs/en/core-with-actor) event action, the [User prompt](/v1/docs/en/frebehav-user-prompt) value resolver is used to display a *prompt* to the user for a comma-separated list of EAN codes (as "article numbers"), which is processed as follows: - The [User prompt](/v1/docs/en/frebehav-user-prompt) value resolver is used for a *substring* within a [Concat strings](/v1/docs/en/core-concat-string-resolver) resolver that formats the input string as a payload of a list in JSON notation. For the input in the runtime example above, the following text is passed to the [JSON to object](/v1/docs/en/core-json-decode-resolver) resolver below: `[4005556270415,4105250028005]` - The [JSON to object](/v1/docs/en/core-json-decode-resolver) value resolver creates the "Object" for the following action block from the prepared string. Ideally, this is a list with one or more values, which should be numeric. The *prompt* generated by the [User prompt](/v1/docs/en/frebehav-user-prompt) value resolver does not provide any input restrictions or validations for the entered text. In this respect, before the search is executed, it should be ensured that the object created via the JSON text meets the requirements: - If the user makes the JSON notation unusable, e.g. by entering special characters (such as `]`), no object will be created. No *reference object* (or the value `$null`) is then available in the action block. - If this is the case, or if the user enters non-numeric characters apart from the separating commas, the [Search (Event action)](/v1/docs/en/core-search-actor) in the action block is not executed. This is made possible by the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver, which is used here to check whether the data object in the *input value* is a list of numerical values. The **Type** selected for this is "Number" `java.lang.Number`, i.e. a *higher-level* class for specific data types such as "Long" or "Double". The [If then else](/v1/docs/en/core-if-then-else-actor) event action in the action block uses an [Entity property rule](/v1/docs/en/core-entity-property-rule) with the [Is empty](/v1/docs/en/core-is-empty-matcher) comparison type to ensure that the search action has an object that is a list of numeric values by type. **NOTE:** In the "Else" branch, an error message or [Abort](/v1/docs/en/core-abort-actor) could be configured via the ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-09PVS0N4.png) symbol to make it transparent to the user that no search is being performed. | ![images/download/attachments/200673324/image-2025-2-14_9-13-37-version-1-modificationdate-1739520816554-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-13-37-version-1-modificationdate-1739520816554-api-v2.png) | | --- | --- | In the present configuration, a [Check type](/v1/docs/en/core-check-type-rule) with the parameters from the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver could be used instead of the [Entity property rule](/v1/docs/en/core-entity-property-rule) in the action block: | Previous configuration: ![images/download/attachments/200673324/image-2025-2-14_9-12-36-version-1-modificationdate-1739520756100-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-12-36-version-1-modificationdate-1739520756100-api-v2.png) | Alternative configuration: ![images/download/attachments/200673324/image-2025-2-14_9-12-15-version-1-modificationdate-1739520734362-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-12-15-version-1-modificationdate-1739520734362-api-v2.png) | | --- | --- | **NOTE:** The [Check type](/v1/docs/en/core-check-type-rule) solves the task equivalently and even more elegantly. This should be true for most use cases of the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver when it is used to check the object class. Since the [Check type](/v1/docs/en/core-check-type-rule) is a *rule* (see [Rules and values](/v1/docs/en/orchestration-rules-resolvers)) and not a *value resolver*, the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver offers advantages if the return value `$null` can be used in such a way that, by construction, no [If then else](/v1/docs/en/core-if-then-else-actor) event action is required for case discrimination in the given context. - This would be the case, for example, if a [Custom action event](/v1/docs/en/core-custom-action-events) is triggered with the return value, which executes the type check to be executed anyway. - Or the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) is concatenated with a [Default value](/v1/docs/en/core-default-value-resolver) resolver to "catch" the case that no "matching" object is available. In the present use case, for example, a list with a "dummy article number" (see below) could be passed to the [Search (Event action)](/v1/docs/en/core-search-actor) if the list from the *prompt* contains non-numeric values: | If the [Search (Event action)](/v1/docs/en/core-search-actor) is *always* executed in connection with the [Default value](/v1/docs/en/core-default-value-resolver) value resolver, the case distinction per [If then else](/v1/docs/en/core-if-then-else-actor) event action can be omitted. The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver can then be used by concatenation directly in the header of the [Execute with](/v1/docs/en/core-with-actor) event action, as shown at right. If the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver detects that the object created via JSON notation does not exclusively contain number values, the concatenated [Default value](/v1/docs/en/core-default-value-resolver) resolver generates a list containing exactly one value – here: the dummy number `9999999999999`. **CAUTION****:** If the *input value* for the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver is an empty list (`[]`), it is treated as a "type conform", i.e. it is not replaced by the return value `$null`, but returned as an empty list (`[]`). The empty list passes the test because it does not contain any elements that do not correspond to the **Type** selected in the configuration. The [Default value](/v1/docs/en/core-default-value-resolver) resolver does not intervene in this special case because the empty list (`[]`) is not evaluated as `$null`. In the context of our example, an empty list (`[]`) also occurs when the user presses the "Cancel" button in the *prompt*. | ![images/download/attachments/200673324/image-2025-2-14_9-11-49-version-1-modificationdate-1739520708705-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-14_9-11-49-version-1-modificationdate-1739520708705-api-v2.png) | | --- | --- |