Trigger to transition from Rejected to Triage state

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 transition to the Triage state.

The workflow document activity report includes the transition to the Rejected state and the Triage state where your editors undertake any required updates.

"triggers": [ { "event":"on-change-state", "conditions":[ { "state":"Rejected" } ], "actions":[ { "action":"change-state", "state":"Triage" } ] } ]

If adding the JSON trigger using workflow builder visual editor there is no need to include the opening "triggers": JSON markup notation. Workflow builder adds this.

event

"on-change-state"

  • trigger only listens for a state change event

  • condition added to constrain the event to the state change to the  Rejected state

condition

"state": "Rejected"

  • state condition for the trigger event

  • condition is met if the current state is the Rejected state

action

"change-state"

  • on state change event to the Rejected state, the workflow immediately transitions to the specified state in the change-state action (Triage state)

Related pages