Trigger actions

Overview

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

When the workflow event occurs, the trigger checks that any required condition is met, the added trigger action(s) will occur.

Trigger actions can be used to automatically assign reviewers, fast-track a change of state or send custom email notifications

Actions

One or more actions can be added to a trigger and executed once the event has occurred and the conditions are fulfilled. A single trigger can include one or more actions.

"triggers:" [ {"event": "on-change-state", "conditions": [ {"state": "Rejected"} ], "actions": [ {"action":"set-message", "type":"info", "title":"Hey My Wonderful design and Tech Team", "body":"We have some work to do ... it was rejected!!!"} ] } ]

Some workflow actions include parameters, including mandatory parameters, that are required for the action to be successfully executed within the workflow trigger.

Trigger actions include:

Adding a trigger

A workflow trigger can be added to a workflow using the visual editor or the code editor.

In the visual editor:

ou can add one or more trigger actions using the Add Action option.

  • choose Add Action to open a dialog box to select a trigger action

cdmc_visualeditor_extract_actions_addaction.png
  • select a trigger action using the Actions dropdown menu

cdmc_visualeditor_triggers_addactiondialogbox_selectanaction_setmessage_dropdownmenu.png
  • add any action parameter values (including mandatory parameters) in the Add Action dialog box

In the code editor:

The code editor includes

  • color coding to easily distinguish property names, values, and different data types

  • autocomplete feature

  • dropdown selectors for available property names, including workflow trigger events, conditions, and actions

An action is added after any conditions by

  • adding the "actions": from the JSON schema dropdown

  • next add the "action":

A single action is added by default, for example, "send-email":.

You can remove the send-email action, add new apostrophes "", and add a different action from the JSON schema help.

 


Trigger actions

"change-state"

"publish-page"

"approve"

"reject"

"assign" and "unassign"

"set-expiration"

"clear-expiration"

"set-message"

"clean-messages"

"remove-restrictions"

"send-email"

Related Pages