Book entry booked

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).


images/download/attachments/201666256/image-2025-3-31_14-22-21-version-1-modificationdate-1743423741673-api-v2.png

The Book entry booked rule is considered 'passed' if there is a reference object of the 'Time slot book entry' type (see Time slot management) whose booking status corresponds to the criterion defined by the checkbox in the configuration:

  • If the Check box 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).

  • If the Check box 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 selection, the rule is considered 'failed' if there is no reference object of the 'Time slot book entry' type.

Configuration

The Book entry booked rule expects a 'Time slot book entry' (see Time slot management) 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

  • 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

  • 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). 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 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) at runtime.

  • The concatenated Rule list 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 rule (with the Check box deselected).

    • Within an AND junction, an 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 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