on-change-state event

Example “on-change-state" event

"triggers": [     {"event": "on-change-state",     "conditions":     [         {"final":true}     ],     "actions":     [         {"action": "clean-messages"}     ]} ]

If adding the JSON trigger using workflow builder visual builder there is no need to include the opening "triggers": JSON markup notation, it is added automatically by workflow builder.

The trigger action clears any existing messages on the content

  • "actions":[{ "action":"clean-messages"}],

The messages are only cleared on the change of state to the final state in the workflow

  • "conditions": [{"final": true}],

Trigger events