state condition

Overview

One or more conditions can be set for a trigger for a named event in the workflow.

Adding the "state" condition to a trigger listens for the trigger event when the document is in the state specified in the condition. Only one state is set for the condition.

The state name used in the condition must be a state in the workflow.

When the named workflow event occurs, the trigger checks that the "state" condition is met and sets one or more actions if met.

 



JSON Condition

JSON Code example

Notes

JSON Condition

JSON Code example

Notes

"state": "(string value)"

"conditions": [ {"state": "Review"} ],

The trigger action occurs if the condition matches the provided "state".

  • specified state name must exist in the current workflow

  • the state name is case-sensitive

  • only accepts one state value

  • only one "state": "<statename>" condition for an event

Example on-approve event



JSON trigger conditions

Related Pages