--- title: "Book entry booked" slug: "tsmt-is-booked-bto-rule" updated: 2026-04-13T08:45:07Z published: 2026-04-13T08:45:07Z canonical: "docs.lobstersoftware.com/tsmt-is-booked-bto-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. # Book entry booked > [!NOTE] > Rule types – Abstract > > **Purpose:** Is 'passed' if there is a *reference object* of the type 'Time slot book entry' whose booking status corresponds to the criterion defined in the configuration (booked/not booked). > > > [!TIP] > > Tooltip > > > > - **Usage**: For a *reference object* of the 'Time slot book entry' type, the rule checks whether the 'Time slot book entry' is assigned to a time slot and a loading place ('booked') or not, depending on whether the [Check box](/v1/docs/en/fre-check-box-vo) is selected or deselected. > > - **Parameter**: [Check box](/v1/docs/en/fre-check-box-vo) that decides whether the check accepts the state 'booked' (selected) or 'not booked' (deselected). > > - **NOTE:** If the *reference object* is not a 'Time slot book entry', then the rule is always considered as 'failed'. ![images/download/attachments/201666256/image-2025-3-31_14-22-21-version-1-modificationdate-1743423741673-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-31_14-22-21-version-1-modificationdate-1743423741673-api-v2.png) The [Book entry booked](/v1/docs/en/tsmt-is-booked-bto-rule) rule is considered 'passed' if there is a *reference object* of the 'Time slot book entry' type (see [Time slot management](/v1/docs/en/orchestration-rules-tsmt)) whose booking status corresponds to the criterion defined by the checkbox in the configuration: - If the [Check box](/v1/docs/en/fre-check-box-vo) is selected, the rule is considered 'passed' if a 'Time slot book entry' is available as a *reference object* that is 'booked', i.e. occupies a specific time slot and a defined loading place (see [Loading places](/v1/docs/en/tsmt-loading-place)). - If the [Check box](/v1/docs/en/fre-check-box-vo) is deselected, the rule is considered 'passed' if the *reference object* is a 'Time slot book entry' that is not 'booked', i.e. not assigned to a time slot and loading place. **NOTE:** Regardless of the [Check box](/v1/docs/en/fre-check-box-vo) selection, the rule is considered 'failed' if there is no *reference object* of the 'Time slot book entry' type. ## Configuration The [Book entry booked](/v1/docs/en/tsmt-is-booked-bto-rule) rule expects a 'Time slot book entry' (see [Time slot management](/v1/docs/en/orchestration-rules-tsmt)) as a *reference object*. | Configuration | Test criteria (for rule 'passed') | | --- | --- | | ![images/download/attachments/201666256/image-2025-3-31_14-22-58-version-1-modificationdate-1743423778585-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-31_14-22-58-version-1-modificationdate-1743423778585-api-v2.png) | - The *reference object* is a 'Time slot book entry'. - The 'time slot book entry' is considered 'booked" because it relates to a time slot and a loading place. | | ![images/download/attachments/201666256/image-2025-3-31_14-22-38-version-1-modificationdate-1743423758297-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-31_14-22-38-version-1-modificationdate-1743423758297-api-v2.png) | - The *reference object* is a 'Time slot book entry'. - The 'Time slot book entry' is not considered 'booked" because it is not assigned to a time slot and a loading place. | ## Example Within an event handling, there is a list of time slot book entries in a variable (`entries`), which have been determined by a [Search (Event action)](/v1/docs/en/core-search-actor). In the course of event handling, time slot book entries that are 'planned' but not yet 'scheduled' should be advised by e-mail if the planned date relates to the current week: - A time slot book entry should be considered 'planned' if the date attribute 'Loading date planned' refers to a planned date in or before the current week. - A time slot book entry should be considered 'scheduled' as soon as it assigns a specific time slot for a defined loading place by making a booking. Configuration: | The above existing event handling is extended by the [For each loop](/v1/docs/en/core-for-each-entity-actor) shown on the right to trigger the mail notification, if necessary: - In the **Resolver for entries**, the variable `entries` is accessed first, which contains a list of time slot book entries from a [Search (Event action)](/v1/docs/en/core-search-actor) at runtime. - The concatenated [Rule list resolver](/v1/docs/en/core-list-rule-resolver) should filter out the time slot book entries from the given list (**Resolve all as a list**) for which a notification is due at the current (server) system time: - Only time slot book entries that have not yet been 'booked' are desired in the rule section of the value trigger by means of an [Book entry booked](/v1/docs/en/tsmt-is-booked-bto-rule) rule (with the [Check box](/v1/docs/en/fre-check-box-vo) deselected). - Within an AND junction, an [Entity property rule](/v1/docs/en/core-entity-property-rule) follows below, which checks whether the value of the date range (`date`) in the date attribute 'Loading date planned' is before the period 'Next week'. This limits the iteration of the loop to a (unbooked) time slot book entry, with a scheduled date within the *current* week (or earlier). - The [E-mail](/v1/docs/en/core-send-mail-actor) event action is triggered for all 'reportable' time slot book entries. | ![images/download/attachments/201666256/image-2025-3-31_14-24-50-version-1-modificationdate-1743423891735-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-31_14-24-50-version-1-modificationdate-1743423891735-api-v2.png) | | --- | --- |