Trigger to immediately transition from the Rejected to the Triage state
In the 4 state workflow shown below, you might want the workflow to move from a Rejected state to a more proactively named Triage state.
You can use a trigger to listen for the state change event to the Rejected state and set this trigger action to immediately transition to the Triage state.
[ { "event":"on-change-state", "conditions":[ "state":"Rejected" } ], "actions":[ { "action":"change-state", "state":"Triage" } ] } ]
event | on-change-state |
|
---|---|---|
condition | state:Rejected |
|
action | change-state |
|
This can be added to the workflow using workflow builder.
For audit purposes, both the rejected decision transition to the Rejected state and the subsequent trigger transition to Triage are recorded in the page workflow history
It is mandatory in the change-state
trigger action to add the state
parameter with a value for the destination state name.
A range of JSON trigger actions is available including the set-expiration
trigger action to set an expiration date for a state.
List of trigger actions
- change-state trigger action
- approve trigger action
- reject trigger action
- unassign trigger action
- clean-messages trigger action
- remove-restrictions trigger action
- publish-page trigger action
- set-expiration trigger action
- clear-expiration trigger action
- send-email trigger action
- assign trigger action
- set-message trigger action