Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typeflat
separatorpipe
printablefalse

Overview

Excerpt

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 that occurs when the document is in the state specified in the condition. Only one state can be is set for the condition.

When the named workflow event occurs, the trigger checks that the "state" condition is met , and if met set 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

NoteNotes

"state": "(string value)"

Code Block
"conditions":
[
	{"state": "Review"}
],

The trigger action will occur occurs if the condition matches the provided "state".

  • specified state name must exist in the current workflow

  • only accepts one state can be specifiedvalue

  • only one "state": "statename" can be added as a condition condition is added for each event

Example on-approve event

Insert excerpt
on-approve event
on-approve event
nopaneltrue


JSON trigger conditions

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "jsontriggercondition" and space = currentSpace ( )

Related Pages