Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Excerpt

One or more conditions can be set for a trigger for a named event in the workflow.

Adding the "final":true condition to a trigger listens for the trigger event that occurs when the document is in the final state. The

  • the condition is a boolean condition with a value of true or false

.

When the named workflow event occurs, the trigger checks that any required condition is met , and if met sets one or more actions.

If "final" condition is added together with another condition to an event, the condition is evaluated as an OR function.

if they are met.


JSON Condition

JSON Code

Note

"final": (boolean true/false)

Code Block
"conditions":
[
	{"final":true}
],


The trigger action will occur occurs if the state for the event is the final state.

For example, 

  • "event":"on-change-state", "conditions":[{"final":true}],

This "on-change-state" event condition is met on the the change to the final state in the workflow.

The final parameter value is a boolean condition

  • "final":true

  • "final":false

If final condition is added to an event with a state condition, the conditions are evaluated as an OR condition.

Example on-change-state event

Insert excerpt
"on-change-state " event"
on-change-state " event
nopaneltrue

JSON trigger conditions

Filter by label (Content by label)showLabelsfalseshowSpacefalsecql

label = "jsontriggercondition" and space = currentSpace ( )

Related Pages