Reference
Workflow JSON format: the fields in an export or import file
The structure of the JSON file that ProcessIQ exports and imports, field by field, with a small example that imports cleanly.
Last updated
A workflow export is one JSON object. Import accepts the same shape, so you can edit a file by hand or have an AI assistant produce one. How to export and import is in export and import workflows as JSON. This page lists the fields.
The document
| Field | Meaning |
|---|---|
name | Required. The workflow's name. |
description, category | Optional text. |
referencePrefix | Up to 8 letters that start request references. Made from the name if missing. A letter is added if another workflow already uses it. |
graph | nodes and edges. |
form | fields: the request form. The list can be empty. |
Nodes and edges
A node has id (unique), type, name, optional config and optional position with x and y. Without positions, ProcessIQ lays the steps out. The type is one of start, end, approval, task, condition, timer, notification, parallel_fork, parallel_join or api_call.
| Type | `config` fields |
|---|---|
end | outcome: completed (default) or rejected. |
approval | mode (any, all, sequential, majority, percentage), approvers, fallback, threshold, slaHours, slaMode, allowSelfApproval, requireCommentOnApprove, amountField with approvalLimit, separateFromPriorApprovers. |
task | title, assignee, fallback, dueHours, dueMode, priority (low, normal, high, urgent). |
timer | durationMinutes, mode. |
notification | title, message, recipients. |
api_call | integration (its name), method, path, headers, body, timeoutSeconds, maxAttempts, mapping. |
slaMode, dueMode and mode on a timer are calendar or business. start, condition and the parallel steps have no config. An assignee is { "kind": ..., "value": ... }. The kinds are manager, department_head, requester, role (value is the role name), field (value is a form field of type user) and user (value is a user id that belongs to one organisation).
An edge has id, from, to and optional label, condition (an expression), isDefault and outcome. Outcomes are approved, rejected or returned after an approval, and success or failed after an API call.
Form fields
Each field has key, label and type, and optionally required, options (each with value and label), min, max, maxLength, pattern, visibleWhen, requiredWhen, calculation, defaultValue, section and helpText. See form fields and validation.
A small example
{
"name": "Equipment request",
"description": "Ask for equipment and get manager approval.",
"category": "IT",
"referencePrefix": "EQ",
"graph": {
"nodes": [
{ "id": "start", "type": "start", "name": "Start" },
{
"id": "mgr",
"type": "approval",
"name": "Manager approval",
"config": {
"mode": "any",
"approvers": [{ "kind": "manager" }],
"fallback": { "kind": "role", "value": "Organisation Admin" },
"slaHours": 24,
"slaMode": "business"
}
},
{ "id": "done", "type": "end", "name": "Approved", "config": { "outcome": "completed" } },
{ "id": "no", "type": "end", "name": "Rejected", "config": { "outcome": "rejected" } }
],
"edges": [
{ "id": "e1", "from": "start", "to": "mgr" },
{ "id": "e2", "from": "mgr", "to": "done", "outcome": "approved" },
{ "id": "e3", "from": "mgr", "to": "no", "outcome": "rejected" }
]
},
"form": {
"fields": [
{ "key": "title", "label": "What do you need?", "type": "text", "required": true },
{ "key": "cost", "label": "Estimated cost", "type": "currency", "required": true, "min": 0 }
]
}
}What import checks, and what to leave out
The importer rejects only files it cannot read. Full checks happen when you Validate and publish. See why won't my workflow publish. Never put passwords, keys or tokens in the file. An api_call step names an integration, and credentials stay in the integration's own settings. Headers such as Authorization are refused.