...
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.
Code Block |
---|
"triggers": [ { "event":"on-change-state", "conditions": [ {"state":"Rejected" } ], "actions": [ { "action":"change-state", "state":"Triage" } ] } ] |
If adding the JSON trigger using workflow builder there is no need to include the opening "triggers":
JSON markup notation, since It will be added by workflow builder.
event | on-change-state |
|
---|---|---|
condition | state:Rejected |
|
action | change-state |
|
This can be added to the workflow using workflow builder.
...
title | JSON format to add to workflow builder |
---|
Code Block |
---|
[{"event":"on-change-state","conditions":[{"state":"Rejected"}],"actions":[{"action":"change-state","state":"Triage"}]}] |
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
...