null


Skip to end of banner
Go to start of banner

on-approve event

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Overview

Use the on-approve event in a workflow trigger to listen for an approval event and execute one or more trigger actions.

By including a trigger condition, the approve event in a workflow trigger can be constrained to listen for the approval event in a named state in the workflow, the workflow final state, or the initial state.

Example “on-approve" event

"triggers":
[
	{"event": "on-approve",
	"conditions":
	[
		{"state":"Review"}
	],
	"actions":
	[
		{"action":"change-state",
			"state":"Published"}
	]}
]

The trigger action causes a change of state to the Published state.

  • "actions":[{ "action":"change-state", "state": "Published"}],

The trigger action occurs on the approve event but ONLY if the current state is the Review state

  • "conditions":[{"state":"Review"}],

This example fast-tracks a change of workflow state when a single approval decision is made in the Review state.

Trigger events

  • No labels