state condition

Overview

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

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.

 



Condition

JSON code

Notes

Condition

JSON code

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



Trigger conditions

Related Pages