]> git.evergreen-ils.org Git - Evergreen.git/commit
Allow action trigger events to be repeated
authorRemington Steed <rjs7@calvin.edu>
Mon, 5 Aug 2013 13:57:04 +0000 (09:57 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 12 Sep 2013 17:55:43 +0000 (13:55 -0400)
commit86db7176873b007313f25879779a7ff853e51298
tree00c6fb00f18cfb987bcfd1d1efdd61e5807cd42d
parent5d546cc4f21c9ea9431f4530af28fa5e6ad631c6
Allow action trigger events to be repeated

Currently, there is no way to repeat an event (action/trigger) when a
real-world event occurs more than once for the same target. This only
matters for targets that are persistent (such as a library card)
combined with events that can reoccur (such as expiration, if the
expiration can be removed). To address this, we add a new field to the
action_trigger.event_definition table that sets the amount of time
after which the event is allowed to repeat.

This commit adds the new field to the IDL, database schema and template
files and also provides the simple db upgrade script. It is worth noting
that we chose to base the repeatability on the start_time of the previous
event, which is more predictable than complete_time (which could be null
if the event fails).

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm
Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.action_trigger.event_definition.repeat_delay.sql [new file with mode: 0644]
Open-ILS/src/templates/conify/global/action_trigger/event_definition.tt2