The notification router reads details of the notification channels from an options node, the notification outcomes.
As well as identifying the channels, this provides additional options which are passed to the channels, effectively parameterising the channels. This allows the same channel to be used with multiple sets of options. The option on the outcome override the flattened notification, and this is in turn overridden by any options on the rule that triggers the outcome.
In the standard configuration, there are three outcomes:
| high | Send emails one-at-a-time as soon as they are received |
| medium | Batch emails, but send them within 15 minutes |
| low | Batch emails, but send them within 4 hours |
| log | Send notifications to the log. Can be useful when developing or testing notifications. |
The medium and low outcomes both use the same channel but apply different options. Because they use the same channel, notifications can be combined, for example sending low priority emails sooner because there is a medium priority email.
The outcomes are formatted as JSON, as in the example below.
{
"outcome_reference": {
"name": "Outcome name",
"channel": "channelNodeVersionIdentifier",
"options": {
}
}, ... more outcomes ...
}