This site has moved to the integrated Appfire documentation and information site for our apps.

From February 2024 this site is no longer updated.

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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"
      }
   ]
}
]


eventon-change-state
  • trigger will only listen for a state change event  - condition added to constrain the event to the state change to the  Rejected state
conditionstate:Rejected
  • state condition for the trigger event. Condition is met if the current state is the Rejected state
actionchange-state
  • on state change event to the Rejected state, the workflow immediately transitions to the specified state in the change-state action (Triage state)


This can be added to the workflow using workflow builder.

 JSON format to add to workflow builder
[{"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 



(info) 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

  • No labels