Scheduled Daily Notices - Things To Know

This information is current as of Honeysuckle.


Notices are created and scheduled when a loan occurs. They are stored in mod-circulation-storage and the related JSON schema is here

The JSON has an attribute called sendInRealTime that will be either true or false.

If sendInRealTime is false, then the notice is sent in batch, once a day, at 23:59 PM (tenant-level time.)

The JSON also has an attribute called nextRunTime. nextRunTime is set based off of the type of notice trigger and the loan date/time. 

For notices that are configured to send daily (e.g., "sendInRealTime": false), nextRunTime is more of a batching indicator than a sign of when a notice will actually be delivered.

Scheduled notices are run at 23:59 daily, but next run time should reflect the triggering time set in the notice policy (so if it's an overdue notice and it's set to run every 1 day, then it would be from the time it's overdue once a day). The scheduled time then picks up all of those "ready to be run" or meeting the criteria for this scheduled run. 

Example: An item is checked out at 2 pm on a 3-day loan, with an overdue notice set to run every 1 day after it goes overdue So the overdue notice nextRunTime would be 2 PM + 3 days, but wouldn't actually run until 23:59 of +3 days. And the batch set of notices that runs on 23:59 would pick up ALL of the notices scheduled to run on that day.