Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Overview
The You can use the change-state action in a trigger to change the workflow trigger is state automatically. For example, it can be used in an on-reject event trigger to fast-track a single rejected decision when multiple reviewers are assigned to an approval.
When the workflow trigger event occurs, the trigger checks that any required conditions are met, and if they are met, the "change-state"
action forces a change of the state.
Info |
---|
One or more trigger actions can be set for a named event in the workflow. |
"change-state"
Excerpt | ||||||
---|---|---|---|---|---|---|
The trigger action
❗️ Mandatory parameterstate parameter
Example trigger code
The example trigger listens for the workflow's change of state to the final state and immediately moves the workflow to the Archive state. The destination state must be included in the Another use of the trigger action is to move from the workflow Review state, which contains an approval, immediately on a reviewer rejection, to the Editing state. This can be used to fast-track a single rejected decision, for example, when multiple reviewers are assigned to an approval.
|