Rule format and matching

Each rule is a JSON object, held in a Node options field. Use the Node Options type to create rules.

{
"match": {
match object
},
"outcome": "outcome_reference",
"options": {
additional options
},
"priority": priority
"end": false|true
}
match

A pattern object that will be used to match against the flattened notification. This follows the rules defined in Object Pattern Script. For example, to apply a rule to all chat messages, you would code:

{
"event_type_reference": "chat"
}

Use "recipient": true to apply to all recipients, and "recipient": false to apply to the flattened notification that has no recipient.

outcome

Reference to an outcome. See Notification outcomes.

Set to false to not have an outcome. When used with "end": true, this drops a message.

options Additional options to pass to the channel if this rule is matched. These override those in the outcome.
priority

Priority of the rule.

The default priorities for user rules, user group rules and global rules are 0, 10 and 100 respectivelty.

Within the priority, rules are applied in the sequence in which they are defined.

end Set to true to halt rule processing if this rule fires.