The trigger action "set-message" creates a message notification and can include a message title and a body. Info |
---|
It can be set as info, warning, or error and | can be set to auto-close after a specified period or require | a read confirmationaction (set-message) (enum) (string)body (string) ❗️tags (enum). is used as a tag for the message to record the current state when the action occurred. mode (enum) Message mode. By default, "ack" , a user will have to acknowledge it, while with "autoClose" , it'll disappear after 10s. ❗️ indicates a mandatory parameter - the set-message "type" parameter value and the "body" parameter value are required
❗️ Mandatory parameterstype The "type" parameter value must be included. body The "body" parameter value must be included.
Trigger example Code Block |
---|
"triggers":
[
{"event": "on-change-state",
"conditions":
[
{"state":"Expired"}
],
"actions":
[
{"action": "set-message",
"type": "info",
"title": "Stale content",
"body": "Content may be out of date",
"tags": "state",
"mode": "autoClose"}
]}
] |
Info |
---|
If When adding the JSON trigger using using the workflow builder visual editor, there is no need to include the opening "triggers": JSON markup notation, since ; it will be is added automatically by the workflow builder. |
The above trigger listens for a state change event to the Expired state and will display displays an on-screen message notification on the change of state.oImage Removed Image AddedIf the "set-messsage" action parameter is "type":"warning" the , the displayed notification is:oImage Removed Image AddedIf the "set-messsage" action parameter is "type":"error" the , the displayed notification is:oImage Removed Image Added Tip |
---|
All messages can be removed using the "clean-messages" trigger action. |
Info |
---|
Custom email notifications can be sent using the "send-email" trigger action. |
|