Create a Workflow template
A template can be created via the Reflex web interface, this allows you to use your rules in a workflow and run checks whenever you desire. These templates are fully customizable using our JSON editor.
Please be aware that templates cannot be changed. To perserve auditability, we don't allow templates to be updated nor deleted.
Template
A Template consists of the following fields:
Field | Description |
---|---|
name | Name of Workflow Template |
description | Description of Workflow Template |
jobs | List of all Workflow jobs, defined by a unique id |
inputs | Inputs needed for a Workflow run |
Example
{
"name": "Basic €5 Invoice and Amount Checks Workflow",
"description": "The workflow of basic checks done for a €5 invoice.",
"jobs": {
"ips": {
"name": "Check Destination IP",
"type": "NODE_IPS",
"depends_on": ["invoice_amount"]
},
"invoice_amount": {
"name": "Check Invoice Amount",
"type": "CHECK_INVOICE_AMOUNT",
"config_id": "68b8e2c2-6720-47a0-9a68-e7b8eeb06315",
"depends_on": ["ips"]
},
"route_hints_ips": {
"name": "Check Route Hints Ips",
"type": "ROUTE_HINTS_IPS"
}
},
"inputs": [{ "name": "PAYMENT_REQUEST" }]
}
Jobs
A Job consists of the following fields:
Field | Description | Mandatory |
---|---|---|
name | Name of job | ✅ |
type | Job type | ✅ |
config_id | Custom rule id | |
depends_on | Job dependencies by key |
Example
{
"name": "Check Invoice Amount",
"type": "CHECK_INVOICE_AMOUNT",
"config_id": "68b8e2c2-6720-47a0-9a68-e7b8eeb06315", // references to rule
"depends_on": ["ips"] // references to another job id
}