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.
When the named workflow event occurs, the trigger checks that the "state" condition is met and sets one or more actions if met.
If the "state"
condition is used with "final"
condition, the condition is evaluated as an OR condition. If "state"
is used with the "initial"
condition, the condition is evaluated as an AND condition.
JSON Condition | JSON Code example | Notes |
---|---|---|
| "conditions":
[
{"state": "Review"}
], | The trigger action occurs if the condition matches the provided
|