Workflow Actions
Actions are connections between steps and/or workflow outcomes.
At least two actions are required. One that finalised the
from: array of steps where the action can initiate from. useALLif actions can be initiated from all steps.to: use{ "step": "KEY" }to connect to another step. Use{ "outcome": 1 }to finalise the workflow. Possible values are1for success and2for failure.preventUserInteraction: set totrueif action should NOT be available in the UI for user selection. Used for when action should be trigger automatically through business logic (from workflow functions or cron jobs).
Example
{
"actions": [
{
"key": "approve",
"name": "Approve Record",
"from": ["ALL"],
"to": { "outcome": 1 },
"preventUserInteraction": true
},
{
"key": "reject",
"name": "Reject record",
"from": ["ALL"],
"to": { "outcome": 2 }
}
]
}