change-state trigger action
Overview
You can use the Change State action in a trigger to change the workflow state automatically on a workflow event.
For example, it can be used to fast-track a single reviewer’s rejection decision when multiple reviewers are assigned to an approval.
Change State action parameters
Action Parameter | Value | Notes |
---|---|---|
State MANDATORY | Use the dropdown to select one of the states in the workflow. | The state options are populated by the states in the workflow. Changing the state name in the workflow might cause a validation error |
You can add one Change State action to a workflow trigger. When the workflow 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 to a specified state.
This lets you respond flexibly to workflow events, such as when a single reviewer approves a page.
“change-state” JSON code
A Change State workflow trigger action added using the visual editor is automatically displayed as the “change-state”
trigger action in the workflow code editor.
You can also use the code editor to add the workflow trigger and the “change-state”
action.