Skip to content
ProcessIQ

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

FieldMeaning
nameRequired. The workflow's name.
description, categoryOptional text.
referencePrefixUp to 8 letters that start request references. Made from the name if missing. A letter is added if another workflow already uses it.
graphnodes and edges.
formfields: 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
endoutcome: completed (default) or rejected.
approvalmode (any, all, sequential, majority, percentage), approvers, fallback, threshold, slaHours, slaMode, allowSelfApproval, requireCommentOnApprove, amountField with approvalLimit, separateFromPriorApprovers.
tasktitle, assignee, fallback, dueHours, dueMode, priority (low, normal, high, urgent).
timerdurationMinutes, mode.
notificationtitle, message, recipients.
api_callintegration (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.

Try ProcessIQ yourself

Start a free trial or open the shared demo organisation with a test account for every role.