Evergreen allows you to set up automated notifications and actions to respond to events in your system. An example of an event might be an item becoming overdue. An example of an action might be sending an email notification to users.
The Action Triggers and Notification module can be found in the staff client by navigating to Admin > Local Administration > Notifications / Action Triggers.
Action Triggers and Notifications are created from within the staff client.
Before creating a new notification, check the existing notifications to see if your desired notification can be cloned from an existing one.
Cloning notifications is a great way to create a new notification quickly based on existing ones. To Clone notifications follow these steps:
There are several notifications already created in Evergreen by default, including several for overdue or pre-due events. Text can be edited for email notifications. To edit the text in an existing notification:
Action triggers and notifications will not be processed until the action trigger runner script is run from the command line or a cron job.
To process the action triggers, an Evergreen administrator will need to run the trigger processing script /openils/bin/action_trigger_runner.pl from the command line. This can and should be be set up as a cron job scheduled to run automatically.
This script has a number of important options:
--osrf-config=<config_file>: OpenSRF core config file. Defaults to: /openils/conf/opensrf_core.xml
--custom-filters=<filter_file>: File containing a JSON Object which describes any hooks that should use a user-defined filter to find their target objects. Defaults to:
/openils/conf/action_trigger_filters.json
--run-pending: Run pending events
--process-hooks: Create hook events
--max-sleep=<seconds> When in process-hooks mode, wait up to <seconds> for the lock file to go away. Defaults to 3600 (1 hour).
--hooks=hook1[,hook2,hook3,...]: Define which hooks to create events for. If none are defined, it defaults to the list of hooks defined in the --custom-filters option.
--granularity=<label>: Run events with {label} granularity setting, or no granularity setting
--granularity-only: Used in combination with --granularity, prevents the running of events with no granularity setting
--debug-stdout: Print server responses to stdout (as JSON) for debugging
--lock-file=<file_name>: Lock file
For example, to run all pending actions, enter the following command at the command line:
perl action_trigger_runner.pl --osrf-config=/openils/conf/opensrf_core.xml --run-pending --process-hooks
If you want to run all actions under a specific hook, enter the following command:
perl action_trigger_runner.pl --osrf-config \ /openils/conf/opensrf_core.xml --hooks checkout.due
One of the more useful options is granularity since this goes hand and hand with your cron job scheduling. Granularity options include Hourly, Daily, Weekly, Monthly and Yearly.
For the action triggers to be processed, ensure that they are set to enabled from the staff client.
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.