on-approve event
Overview
Use the on-approve event in a workflow trigger to listen for an approval approve event and execute one or more trigger actions.
By including a trigger condition, the approve event in a workflow trigger can be constrained to listen for the approval approve event in a named state in the workflow, the workflow final state, or the initial state.
Example “on-approve"
event
"triggers":
[
{"event": "on-approve",
"conditions":
[
{"state":"Review"}
],
"actions":
[
{"action":"change-state",
"state":"Published"}
]}
]
The trigger action causes a change of state to the Published state.
"actions":[{ "action":"change-state", "state": "Published"}],
The trigger action occurs on the approve
event but ONLY if the current state is the Review state
"conditions":[{"state":"Review"}],
This example fast-tracks a change of workflow state when a single reviewer approve decision is made in the Review state.