Event
A trigger can be set to listen for the following events.
Filter by label | ||||||
---|---|---|---|---|---|---|
|
A workflow JSON trigger can include more than one You can add multiple triggers, each with a different "event"
. However, you can only include one of each type of event can be included in a single "event"
in the trigger.
For example, when adding the change of state
{"event": "on-change-state", "actions":[............]}
The trigger event is Any other use of this event must be filtered to a specific occurrence using conditions.For example, the event has a condition to only listen for a change of state to a named stateusing a condition:
{"event": "on-change-state","conditions":[{"state":"Approved"}], "actions":[............]}
Once the event occurs and any conditions are met, and one or more set trigger actions occur.
A space administrator can use the visual editor or the code editor to add one or more triggers to a workflow.
Excerpt | ||
---|---|---|
|
| |
In the visual editor: You can use the following options to add the workflow trigger:
|
The workflow trigger listens for a single event selected from a dropdown menu.
Excerpt | ||
---|---|---|
| ||
In the code editor: The code editor includes JSON schema to help support writing the trigger:
|
The code editor includes a dropdown schema option for the available events.
You can also add the trigger using the visual editor.
You can write the workflow trigger or copy and paste the existing JSON code for a trigger (without the opening "triggers":
JSON notation) to the Triggers dialog box in the Edit Workflow panel.
Related Pages
|
The JSON schema includes an option to add a single event for the trigger.
Once you have added the event attribute, you can select the event name from a JSON schema help box.