--- title: "Check type" slug: "core-check-type-rule" updated: 2026-04-13T08:39:44Z published: 2026-04-13T08:39:44Z canonical: "docs.lobstersoftware.com/core-check-type-rule" --- > ## 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. # Check type > [!NOTE] > Rule types – Abstract > > **Purpose:** This is considered 'passed' if the type of *reference object* (or, in the case of a *fallback*, a *type hint* according to the `entityClass` variable) corresponds to the parameterized check criteria ('Type' and/or 'Is collection of'). > > > [!TIP] > > Tooltip > > > > - **Usage**: The [Check type](/v1/docs/en/core-check-type-rule) verifies whether the *reference object* or (if the **Check type hint on empty value** option is checked) the `entityClass` variable is 'compatible' with the parameterization for **Type** and **Is collection of** as a *fallback*. > > - **Parameter**: > > - The **Type** parameter uses a selection field to statically define the object type to which the accepted *reference object* or `entityClass` must correspond as a ‘type hint’. > > - The **Check type hint on empty value** option controls whether the `entityClass` should be checked as a ‘type hint’ in the context of an overview without a selection. . > > - The **Is collection of** option controls whether a list of objects of the type specified or unspecified by selection should be accepted as a *reference object*. > > - **NOTE:** Parent types (e.g. 'Entity' or 'Interface > User') can also be selected for the **Type** parameter, which cover different specific entity types. A [Check type](/v1/docs/en/core-check-type-rule) rule carries out a compare between the input object and a **Type** defined by single selection within the configuration of the rule. ![images/download/attachments/200672601/image-2025-2-13_14-5-44-version-1-modificationdate-1739451943920-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-5-44-version-1-modificationdate-1739451943920-api-v2.png) **NOTE:** The same object can correspond to different types if there is a corresponding relationship between them in the class hierarchy. Examples: - An object of the 'User' (see [Users](/v1/docs/en/base-user)) type not only has a [Check type](/v1/docs/en/core-check-type-rule) for the specific 'User' (`User`) **Type**, but also, for example, for the 'Interface > User' (`IUser`)**Type**, to which the [Guest users](/v1/docs/en/base-guest-user) also belong, as well as the parent 'Entity' (`Entity`) type for all *entity types*. - A [Check type](/v1/docs/en/core-check-type-rule) on the 'Interface > User' (`IUser`) **Type** accepts entities of the 'User' (`User`) and 'Guest User' (`GuestUser`) types, while a 'Company Account' (`CompanyAccount`), for example, does not pass this check. If a [Check type](/v1/docs/en/core-check-type-rule) is used in a *rule configuratio*n, its parameterization (**Type** and **Is collection of**) generally influences the *type note* applicable in the context of the rule configuration and displayed, if applicable, with various effects for the downstream configuration (‘downwards’ in the visualization): | The screenshot on the right shows the *rule* *configuration* for an 'association criterion' (see [Association criteria](/v1/docs/en/core-association-criteria)): - The only rule configured is a [Check type](/v1/docs/en/core-check-type-rule) of the 'User' (`User`) **Type**. - A reference to the 'User' type that is usually selected appears below the [Check type](/v1/docs/en/core-check-type-rule) rule in the configuration. - Downwards from the [Check type](/v1/docs/en/core-check-type-rule), a rule would only be executed due to the AND link with the [Check type](/v1/docs/en/core-check-type-rule) if there is a *reference object* in the data context that corresponds to the type 'checked'. | ![images/download/attachments/200672601/image-2025-2-13_14-6-8-version-1-modificationdate-1739451967399-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-6-8-version-1-modificationdate-1739451967399-api-v2.png) | | --- | --- | | The screenshot on the right shows an OR junction with two instances of the [Check type](/v1/docs/en/core-check-type-rule), which allows two alternative types – 'User' (`User`) and 'GuestUser' (`GuestUser`) – as alternative *reference objects*: - In this configuration, a reference to the 'Interface > User' (`IUser`) type, to which both types checked above belong, automatically appears below the link. | ![images/download/attachments/200672601/image-2025-2-13_14-6-49-version-1-modificationdate-1739452009167-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-6-49-version-1-modificationdate-1739452009167-api-v2.png) | | As shown in the screenshot on the right, the type 'Interface > User' (`IUser`) could also be selected directly in a single [Check type](/v1/docs/en/core-check-type-rule) if both [Users](/v1/docs/en/base-user) and [Guest users](/v1/docs/en/base-guest-user) are accepted as *reference objects* for the data context. **IMPORTANT:** This configuration is only equivalent to the previous one if the OR junction (above) covers all types that the 'Interface type' (*here*: `IUser`) brings together. | ![images/download/attachments/200672601/image-2025-2-13_14-8-7-version-1-modificationdate-1739452087168-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-8-7-version-1-modificationdate-1739452087168-api-v2.png) | | The screenshot on the right initially shows another OR junction with two instances of the [Check type](/v1/docs/en/core-check-type-rule), which combines the 'User' (`User`) and the 'Role' (`Role`) types as alternatives. - Below the rule (at the bottom of the screen), the reference to the 'Entity' (`Entity`) type appears, to which the two checked *entity* *types* belong together with all other *entity types*. - Within the [Entity property rule](/v1/docs/en/core-entity-property-rule) that follows in an AND junction, the *dropdown* for field selection only offers the fields that are assigned to the type 'Entity' (`Entity`) as the overarching data model for all *entity types*. --- **NOTE:** The [Check type](/v1/docs/en/core-check-type-rule) does not convert the *reference object* available at runtime into the checked type (*here*: 'Entity'). At runtime, there is therefore always a *reference object* with its specific type (e.g. 'user' or 'role') and all fields. Even a [Check type](/v1/docs/en/core-check-type-rule) on 'Entity' (`Entity`) instead of the OR junction would not change this. --- **NOTE:** In order to be able to select fields that the 'Entity' type does not contain via dropdown, another instance of the [Check type](/v1/docs/en/core-check-type-rule) could be temporarily inserted below the OR link, in which the relevant type (*here*: 'User' or 'Role') is then selected. After the field selection for both types, this additional [Check type](/v1/docs/en/core-check-type-rule) can be removed again. --- In the screenshot on the right, the [Entity property rule](/v1/docs/en/core-entity-property-rule) has been configured so that either the 'username' (`username`) or the 'Role name' (`roleName`) field is used as the *check value* (left). The ‘role’ is brought into play via the [Default value](/v1/docs/en/core-default-value-resolver) resolver if the `username` field returns 'No value' (`$null`). This is always the case if a 'role' exists as a *reference object*, as the data model does not provide a `username` field for this specific type. **NOTE:** As can be seen in the screenshot, the [Combobox](/v1/docs/en/fre-combo-box-vo) elements in the [Object property](/v1/docs/en/core-property-resolver) resolver only display the selected internal field name (`roleName`, `username`) and not the associated localization. Both fields are not defined for the 'Entity' type. Therefore, there is no localization and also no type hint for the return value, which should be `String`, where the default value 'Object' now appears. If you enter the field names (`username`, `roleName`) as free text in the [Combobox](/v1/docs/en/fre-combo-box-vo) element of the [Object property](/v1/docs/en/core-property-resolver) resolver, you get the same result. | ![images/download/attachments/200672601/image-2025-2-13_14-10-41-version-1-modificationdate-1739452240956-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-10-41-version-1-modificationdate-1739452240956-api-v2.png) | | ![images/download/attachments/200672601/image-2025-2-13_14-14-33-version-1-modificationdate-1739452472744-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-14-33-version-1-modificationdate-1739452472744-api-v2.png) | | The screenshot on the right shows how the configuration from the previous example can be made cleaner, more transparent and even more robust with two instances of the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) resolver: - Before each access with the [Object property](/v1/docs/en/core-property-resolver) resolver, an explicit reference to a specific type is established. In this configuration, the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) resolver implies a 'type check’ against the selected **Type**: If the input value passes this check, it is considered the return value. Otherwise: 'No value' (`$null`). - The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) resolver also works in a similar way to a [Check type](/v1/docs/en/core-check-type-rule) with regard to the configuration context: The selection for the **Type** influences the type hint and the lookup function for the concatenated [Object property](/v1/docs/en/core-property-resolver) resolver as desired, so that associated fields including localisation appear in the dropdown and the type hint (*here*: `String`) matching the selection is displayed for the return value. | ![images/download/attachments/200672601/image-2025-2-13_14-16-2-version-1-modificationdate-1739452562018-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-16-2-version-1-modificationdate-1739452562018-api-v2.png) | ## Configuration Two options can be set for the check type: - The **Check type hint on empty value** option is intended to enable an indirect check type in the event that no object has been passed but the call context contains references to a specific object type. - With the **Is collection of** option, a list of objects can be subjected to a type check instead of a single object. Depending on the selection for the two options, the following variants can be distinguished for the configuration of a check: | Selection 'Type' | 'Check type hint...' option | 'Is collection of' option | Test condition for 'Rule passed' | | --- | --- | --- | --- | | *(required)* | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(23).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(23).svg) | The object passed corresponds to the type <*Type selection*>. The selection of a type is required. | | *(optional)* | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(23).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(29).svg) | The passed object is a list that does not contain any object that does not correspond to the selected **Type**. The selection of a **Type** is optional. Without a selection, entries of any **Type** are accepted. **NOTE:** The test condition sounds a little complicated, but was formulated in this way with the following special cases in mind: - A list with objects of different types only passes a check without <*Type selection*> or if a less specific ('parent') **Type** is selected, e.g. 'User > Interface' for a list containing [Users](/v1/docs/en/base-user) and [Guest users](/v1/docs/en/base-guest-user). - A list without entries passes each check type with the option **Is collection of** independent of a <*Type selection*>. | | *(required)* | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(29).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(23).svg) | The passed object corresponds to the **Type** <*Type selection*> OR no object was transferred BUT the context (e.g. an overview) refers to the object type. As a **Type hint**, the `entityClass` variable is evaluated, which is automatically filled with a 'class' (see [Static values](/v1/docs/en/core-literal-value-resolver)) depending on the context. Example in the context of an overview for [Users](/v1/docs/en/base-user): ```xml entityClass ``` **NOTE:** If a [Custom action event](/v1/docs/en/core-custom-action-events) is triggered by an event action ([Dispatch action event](/v1/docs/en/core-dispatch-action-event-actor)), then, unlike other variables, the `entityClass` variable is not transferred to the associated execution context, but is determined specifically for this context based on the transferred object. If the value resolver for the **Entity** in the configuration of the event action refers to a [Variable](/v1/docs/en/core-storage-value) for which there is no value at runtime, the parameterization of this value resolver determines the 'type reference' (via the `entityClass` variable). Example: ![images/download/attachments/200672601/image-2025-2-13_14-18-4-version-1-modificationdate-1739452684230-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-18-4-version-1-modificationdate-1739452684230-api-v2.png) - In the context of an event handling that reacts to the custom action event triggered by this configuration, the 'type hint' (via `entityClass` variable) also refers to the 'user' (`User`) type if the variable 'newUser' does not contain a value (`$null`). | | *(optional)* | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(29).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(29).svg) | The transferred object is a list that does not contain an object that does not correspond to the <*Type selection*> type OR no object was transferred BUT the context provides clues for the transfer of a list. **NOTE:** The 'Check type hint on empty value' explicitly does not refer to the <*Type selection*>. Without a specific object, it is therefore only possible to determine unspecifically whether the `entityClass` variable has a type that is considered a list. Example: ![images/download/attachments/200672601/image-2025-2-13_14-18-48-version-1-modificationdate-1739452727675-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-18-48-version-1-modificationdate-1739452727675-api-v2.png) - This check type is considered to have been passed if a list containing only [Users](/v1/docs/en/base-user) is transferred as the input object. - A list without entries passes the check, even if it is not of the 'User' (`User`) **Type** (see also notes on the second case above). The **Check type hint on empty value** option has no influence on this because a list without entries is passed as the *input value* and not 'No value' (`$null`). - However, the **Check type hint on empty value** option is relevant if no list is passed but the context indicates a list. - This is the case, for example, if the entity for a [Custom action event](/v1/docs/en/core-custom-action-events) is defined by a [Rule list resolver](/v1/docs/en/core-list-rule-resolver) with the **Resolve all as list** option, which does not return any matches as a result at runtime: ![images/download/attachments/200672601/image-2025-2-13_14-21-59-version-1-modificationdate-1739452919087-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-2-13_14-21-59-version-1-modificationdate-1739452919087-api-v2.png) - - In the example, a [Create list](/v1/docs/en/core-create-list-resolver) resolver bundles [Users](/v1/docs/en/base-user) as entries in a list, each of which is provided via a [Variable](/v1/docs/en/core-storage-value) (`creator`, `modifier`). - The [Custom action event](/v1/docs/en/core-custom-action-events) 'Send Email' (`SEND_EMAIL`) should be used to notify all listed persons, provided they are not the logged-in user. - The concatenated [Rule list resolver](/v1/docs/en/core-list-rule-resolver) in the *value configuration* for the **Entity** 'suppresses' list entries that refer to the [User of session](/v1/docs/en/base-session-user-value) by 'ID' (`id`). - If both variables (`creator` and `lastModifier`) refer to the [User of session](/v1/docs/en/base-session-user-value), the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) does not return an empty list (`[]`), but 'No value' (`$null`). - For an event handling that is triggered by the 'Send Email' and whose [Check type](/v1/docs/en/core-check-type-rule) is configured as above (**Type** 'User', **Check type hint on empty value** selected, Is list of selected), this means that: - The return value 'No value' (`$null`) does not correspond to the **Type** ('User'), but it is considered an 'empty value'. As the **Check type hint on empty value** option is checked, the *type hint* is decisive. - The *type hint* (see also the value of the `entityClass` [Variable](/v1/docs/en/core-storage-value) in the context of the triggered event) is 'List' (`List`) because the **Resolve all as list** option is selected in the [Rule list resolver](/v1/docs/en/core-list-rule-resolver). - The [Check type](/v1/docs/en/core-check-type-rule) is considered passed because the *input value* is empty and the *type hint* is to be checked and this *type hint* is a 'List' (List), which matches the selected **Is collection of** option. - The selection for the **Type** within the [Check type](/v1/docs/en/core-check-type-rule) ('User') is irrelevant if only the *type hint* is checked because there is no value. |