Each If a JSON condition is present this can include one or more conditions. The trigger will only allow the event to be valid if these conditions are valid. The JSON trigger Example
on-expire
event"triggers":
[
{"event": "on-expire",
"conditions":
[
{"final":true}
],
"actions":
[
{"action": "change-state",
"state": "Review"},
{"action": "set-message",
"type": "info",
"title": "Stale content",
"body": "Content may be out of date",
"tags": "state",
"mode": "autoClose"}
]}
]
If adding the JSON trigger using workflow builder there is no need to include the opening "t
riggers":
JSON markup notation, since it will be added by workflow builder.event
includeson-expire
event is only listening for that workflow expiry event for the final
stateevent
must include at least one JSON trigger action.
"change-state"
and "set-message"
actions
If you want to add this trigger to a workflow you can copy and paste the JSON code format (without the opening "triggers"
:
JSON markup notation) to the Triggers dialog in the Edit Workflow panel in workflow builder.
Or you can also add this JSON notation directly to the workflow using the JSON Editor (but you need to include the opening "triggers"
:
JSON markup notation).