--- title: "Entity property rule" slug: "core-entity-property-rule" updated: 2026-06-18T12:14:25Z published: 2026-06-18T12:14:25Z canonical: "docs.lobstersoftware.com/core-entity-property-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. # Entity property rule > [!NOTE] > Rule type: Summary > > **Purpose:** This is considered 'passed' if the *check value* fulfills the test condition defined by the selected [Matchers](/v1/docs/en/core-i-value-matcher). Some matcher types use a *compare value*. > > > [!TIP] > > Tooltip > > > > - **Usage**: The [Entity property rule](/v1/docs/en/core-entity-property-rule) checks the return value from a value resolver for the *input value* with a specific [Matchers](/v1/docs/en/core-i-value-matcher). This matcher can include a *compare value* via a second value resolver. Both value resolvers refer (by default) to the *reference object* from the context of the rule. > > - **Parameter**: > > - The *input value* is determined at runtime via a configurable value resolver. Instead of the [Object property](/v1/docs/en/core-property-resolver) value resolver, from which the name of the rule is derived with regard to a *reference object*, any other value resolver can be used. > > - Below a [Matchers](/v1/docs/en/core-i-value-matcher) must be selected, on whose logic depends whether a second value resolver appears for a *compare value*. > > - **WARNING:** When a selected [Matchers](/v1/docs/en/core-i-value-matcher) is replaced, the configuration for the *compare value (*if present) is lost. ![images/download/attachments/201665268/image-2025-3-27_9-59-9-version-1-modificationdate-1743065949666-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_9-59-9-version-1-modificationdate-1743065949666-api-v2.png) An [Entity property rule](/v1/docs/en/core-entity-property-rule) compares a check value defined by a *value configuration* (in the screenshot above left) with a *compare value* which, depending on the selectable [Matchers](/v1/docs/en/core-i-value-matcher) (in the screenshot below: *by default* [Equals](/v1/docs/en/core-equals-matcher)), must either be explicitly defined by a second *value configuration* (in the screenshot above right) or is implicitly specified by the [Matchers](/v1/docs/en/core-i-value-matcher) selection: | [Matchers](/v1/docs/en/core-i-value-matcher) | Check logic | *Check value type* | *Compare value* | | --- | --- | --- | --- | | [Equals](/v1/docs/en/core-equals-matcher)*(Default)* | Agreement with a *compare value.* | *Any* | Explicit → *Value configuration* | | [In list](/v1/docs/en/core-in-matcher) | Match with list entry in the *compare value.* | *Any* | Explicit → *Value configuration* for 'list value' (`List`, `Set`, and so on) | | [Compare with](/v1/docs/en/core-compareable-matcher) | *Rank comparison with selectable compare operator (=, <, >, <=, >=).* | *Any* | Explicit → *Value configuration* | | [Starts with](/v1/docs/en/core-starts-with-matcher) | Text comparison **NOTE:** The *value configuration* for the *check value* must provide a `String` value. For a *compare value* that is not a `String`, the *string image* is used, which can be specific for each execution context. | `String` | Explicit → *Value configuration* | | [Ends with](/v1/docs/en/core-ends-with-matcher) | `String` | Explicit → *Value configuration* | | [Contains](/v1/docs/en/core-contains-matcher) | `String` | Explicit → *Value configuration* | | [Is empty](/v1/docs/en/core-is-empty-matcher) | Checks whether the *check value* is empty. | *Any* | Implicit → 'No value' (`$null`) or 'Empty list' (`[]`). | | [Value changed](/v1/docs/en/core-has-changed-matcher) | Deviation from the [Original entity](/v1/docs/en/core-original-entity-resolver)*.* | *Field value of an entity* | Implicit → Corresponding field value in the [Original entity](/v1/docs/en/core-original-entity-resolver). | | **Special case** | | [Script](/v1/docs/en/core-scripted-matcher) | Custom logic that returns a Boolean value. | *Any* | Not provided. | The name of the rule refers to a typical possible use of the [Entity property rule](/v1/docs/en/core-entity-property-rule), namely the evaluation of a specific field of the given *reference object*, the value of which is 'resolved' using an [Object property](/v1/docs/en/core-property-resolver) resolver. For this reason, the *value configuration* for the *check value* is preassigned by default with an [Object property](/v1/docs/en/core-property-resolver) resolver. However, all other [Resolvers](/v1/docs/en/core-i-value-resolver) can also be used to feed input data to the test logic determined by the [Matchers](/v1/docs/en/core-i-value-matcher) as a *check valu*e or *compare valu*e. Access to the *reference object* in the context of the [Entity property rule](/v1/docs/en/core-entity-property-rule) or one of its fields is by no means required. An [Entity property rule](/v1/docs/en/core-entity-property-rule) is also the method of choice for comparing a [Variable](/v1/docs/en/core-storage-value) with a static value (see [Static values](/v1/docs/en/core-literal-value-resolver)) or for checking whether it is filled or not using the [Is empty](/v1/docs/en/core-is-empty-matcher) matcher type. ## Configuration The *reference object* in the context of the [Entity property rule](/v1/docs/en/core-entity-property-rule) is available for *value configurations* within the configuration. | After adding a new [Entity property rule](/v1/docs/en/core-entity-property-rule), it appears as shown on the right: - The *value configuration* for the *check value* (left) contains an [Object property](/v1/docs/en/core-property-resolver) resolver for which no field is selected. - The [Equals](/v1/docs/en/core-equals-matcher) matcher type is predefined. - The *value configuration* for the *compare value* (right) appears empty. | ![images/download/attachments/201665268/image-2025-3-27_9-59-57-version-1-modificationdate-1743065997149-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_9-59-57-version-1-modificationdate-1743065997149-api-v2.png) | | --- | --- | | If there is a type reference for the reference object for the context of the [Entity property rule](/v1/docs/en/core-entity-property-rule), for example because a [Check type](/v1/docs/en/core-check-type-rule) is provided within an AND [Junction](/v1/docs/en/core-rule-junction) 'above', a field can be selected immediately in the [Object property](/v1/docs/en/core-property-resolver) resolver (after expanding). In the example on the right, a 'company account' (see [Companies/Clients](/v1/docs/en/base-company-account)) is expected as the *reference object*, so that the 'Metatype' (`metaType`) field is found when you search for 'type'. | ![images/download/attachments/201665268/image-2025-3-27_10-1-58-version-1-modificationdate-1743066118236-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-1-58-version-1-modificationdate-1743066118236-api-v2.png) | | After selecting the 'Metatype' (`metaType`) field, its data type is adopted as the type hint for the *compare value*. This is the [Company meta type](/v1/docs/en/base-company-meta-type) defined as a dynamic enumeration. The reason is that the [Equals](/v1/docs/en/core-equals-matcher) matcher type provides for this. There is still no *value configuration* for the *compare value*, but in contrast to the first screenshot, the '**+**' symbol indicates that a value resolver is proposed when the *value configuration* is expanded, with which a [Company meta type](/v1/docs/en/base-company-meta-type) can be selected as a static value. | ![images/download/attachments/201665268/image-2025-3-27_10-3-3-version-1-modificationdate-1743066183158-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-3-3-version-1-modificationdate-1743066183158-api-v2.png) | | The screenshot on the right shows the [Enumeration](/v1/docs/en/core-dynamic-enum-value-editor) resolver proposed for the [Company meta type](/v1/docs/en/base-company-meta-type) based on the check value type, which returns two results in the *dropdown* for the entered search text ('a'). The [Enumeration](/v1/docs/en/core-dynamic-enum-value-editor) resolver only allows a *single selection*. If different 'metatypes' are defined as acceptable with the *same* [Entity property rule](/v1/docs/en/core-entity-property-rule), the [Equals](/v1/docs/en/core-equals-matcher) matcher type must be replaced by the [In list](/v1/docs/en/core-in-matcher) matcher type. **NOTE:** Alternatively, it is possible to 'juxtapose' several instances of the [Entity property rule](/v1/docs/en/core-entity-property-rule) in an OR [Junction](/v1/docs/en/core-rule-junction). | ![images/download/attachments/201665268/image-2025-3-27_10-3-52-version-1-modificationdate-1743066232601-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-3-52-version-1-modificationdate-1743066232601-api-v2.png) | | A change of *matcher type* must be initiated by clicking on the menu icon within the hexagon shape:![images/download/attachments/201665268/image-2025-3-27_10-5-12-version-1-modificationdate-1743066312280-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-5-12-version-1-modificationdate-1743066312280-api-v2.png) | ![images/download/attachments/201665268/image-2025-3-27_10-5-56-version-1-modificationdate-1743066356819-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-5-56-version-1-modificationdate-1743066356819-api-v2.png) | | **CAUTION****:** As can be seen in the previous screenshot (right), the *value configuration* for the *compare value* is overwritten when the [Matchers](/v1/docs/en/core-i-value-matcher) changes. --- For the [In list](/v1/docs/en/core-in-matcher) matcher type, a [Create list](/v1/docs/en/core-create-list-resolver) resolver is proposed for the *compare value configuration*, with which any number of entries can be defined. The data type of the *check value* is not evaluated as an indication of the level of the list entries, so that the appropriate [Enumeration](/v1/docs/en/core-dynamic-enum-value-editor) resolver is not automatically suggested here. Instead, [Any enumeration](/v1/docs/en/core-any-dynamic-enum-value-editor) must be used to select specific values for the [Company meta type](/v1/docs/en/base-company-meta-type) enumeration. **NOTE:** If all selected enumeration values come from the same enumeration, this appears as a type hint for the return value of the [Create list](/v1/docs/en/core-create-list-resolver) resolver (see screenshot on the right). | ![images/download/attachments/201665268/image-2025-3-27_10-7-16-version-1-modificationdate-1743066436820-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-7-16-version-1-modificationdate-1743066436820-api-v2.png) | | By default, the [In list](/v1/docs/en/core-in-matcher) matcher type is considered passed if the *check value* is contained in the list provided as a *compare value*. The list therefore acts as a positive list (*allowlist*). If the list needs to act as a negative list (*blocklist*) instead, the logic must be 'reversed': ![images/download/attachments/201665268/image-2025-3-27_10-8-12-version-1-modificationdate-1743066493005-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-8-12-version-1-modificationdate-1743066493005-api-v2.png) This is made possible by the **not** menu item in the context menu for the [Matchers](/v1/docs/en/core-i-value-matcher) selection. | ![images/download/attachments/201665268/image-2025-3-27_10-8-59-version-1-modificationdate-1743066539162-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-8-59-version-1-modificationdate-1743066539162-api-v2.png) This [Entity property rule](/v1/docs/en/core-entity-property-rule) passes only for companies whose [Company meta type](/v1/docs/en/base-company-meta-type) is neither 'Company' (`COMPANY`) nor 'Group' (`GROUP`). | | **NOTE:** Instead of reversing the logic for the [Matchers](/v1/docs/en/core-i-value-matcher), this could also have been done for the [Entity property rule](/v1/docs/en/core-entity-property-rule) as a whole (see screenshot on the right). This is made possible by the '**not**' menu item in the context menu for editing the rule. You open the context menu by clicking the menu icon in the top left corner of the surrounding rectangle. ![images/download/attachments/201665268/image-2025-3-27_10-11-28-version-1-modificationdate-1743066688133-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-11-28-version-1-modificationdate-1743066688133-api-v2.png) The screenshot on the right shows the 'negated' [Entity property rule](/v1/docs/en/core-entity-property-rule). The '**!'** indicator appears as an icon at the bottom of the rectangular shape and as a prefix in front of the text in the title bar ('!Compare...'). | ![images/download/attachments/201665268/image-2025-3-27_10-10-21-version-1-modificationdate-1743066621067-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-10-21-version-1-modificationdate-1743066621067-api-v2.png) | | **NOTE:** The screenshot on the right compares the appearance of the two variants for the negation in the context of an `OR `[Junction](/v1/docs/en/core-rule-junction). - The first variant is textually more 'readable': `metaType not(in list)` - The second variant visualizes the negation more clearly. `NOT: (metaType in list)` | ![images/download/attachments/201665268/image-2025-3-27_10-12-31-version-1-modificationdate-1743066751129-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-27_10-12-31-version-1-modificationdate-1743066751129-api-v2.png) |