LP#1410369: Create user messages when configure to do so
authorMike Rylander <mrylander@gmail.com>
Mon, 16 Feb 2015 19:07:57 +0000 (14:07 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 16 Feb 2015 19:25:08 +0000 (14:25 -0500)
commitdca106e1b5e66795cc7923f116209299269adb1e
tree179d4abc0a7f4d7e2d99c9658f37859b1ef94182
parentcca236be3c26cdeb9719b55505c53d4d77bdbf02
LP#1410369: Create user messages when configure to do so

When an A/T definition has both message_usr_path and message_template
defined, we gather the user, sending lib, template, and title, push those
into the environment.  After the user-defined reactor has successfully run,
we pass the environment off to a special-purpose handler that generates
output for actor.usr_message.message and, upon success of that, we insert
the user message into the database.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/ProcessMessage.pm [new file with mode: 0644]