LP#1410369: Create user messages when configured to do so
authorMike Rylander <mrylander@gmail.com>
Mon, 16 Feb 2015 19:07:57 +0000 (14:07 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 18 Feb 2015 21:51:05 +0000 (21:51 +0000)
commit7f2d4a8114f57f205c1c19bcc14bf10e31b85301
treebc83bf70b58b021b664d62e48a4a6735411bbd83
parente2aef7eadd237810708d5c4dadad66b1009a5067
LP#1410369: Create user messages when configured 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 and 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>
Signed-off-by: Galen Charlton <gmc@esilibrary.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]