initial condition
Overview
One or more conditions
can be set for a trigger for a named event in the workflow.
Adding the "initial":true
condition to a trigger listens for the trigger event that occurs when the document is the initial change to the state for a workflow applied to a document.
This trigger only listens for the first transition into a state
the condition is boolean with a value of
true
orfalse
When the named workflow event occurs the trigger checks that any required condition is met and sets one or more actions if met.
Constrain the initial
condition to a single named state in the workflow by using it together with the "state"
condition. Teh two conditions used together are evaluated as an AND function.
Adding the "initial"
condition together with the "final"
condition to an event, evaluates the two conditions as an OR function.
JSON Condition | JSON Code | Note |
---|---|---|
| "conditions":
[
{"initial":true}
], | The trigger action occurs if the current state is the The
The
|