{"slug":"business/11-workflow-engine","title":"11 — Workflow Engine","section":"business","sectionLabel":"Business","status":"unclassified","type":"document","path":"business/11-workflow-engine.mdx","bytes":1608,"description":null,"updated":null,"source":"integratewise/Integratewise-docs-wiki","content":"\n> **Extracted from:** IntegrateWise Platform Specification Suite\n> **Region:** first_pass\n> **Original line:** 1084\n> **Lines:** 37 | **Chars:** 1,321\n> **Status:** Raw extraction — requires review and canonicalization\n\n11 — Workflow Engine\n11.1 Responsibilities\nRun deterministic, retryable, schedulable automations triggered by Events.\nCompose capabilities (05) with approvals (09) and human tasks.\n11.2 Anatomy\nCopyworkflow:\nid: wf_renewal_save_play\ntrigger: SignalCreated(kind=risk, score>=0.7)\nsteps:\n\n- call: cap_mark_renewal_risk\n  with: { lead_id: trigger.subject }\n  on_error: notify_owner\n- human_task: review_renewal_plan\n  assignee: owner\n- call: cap_schedule_call\n  with: { lead_id: trigger.subject, when: +2d }\n  retries:\n  cap_mark_renewal_risk: 3 backoff=exp\n  schedule: none\n  11.3 Inputs\n  Any Event Bus event by name.\n  Cron schedules.\n  11.4 Outputs\n  Step records and final outcome event WorkflowCompleted | WorkflowFailed.\n  11.5 Events\n  Produced: WorkflowStarted, WorkflowStepCompleted, WorkflowHumanTaskCreated, WorkflowCompleted, WorkflowFailed, WorkflowRetried.\n  Consumed: all event bus events (filtered by trigger).\n  11.6 APIs\n  POST /workflows, POST /workflows/{wf_id}/run, GET /workflows/runs/{run_id}.\n  11.7 State transitions\n  scheduled → running → waiting_human → running → completed | failed.\n\n  11.8 Failure handling\n  Per-step retries, exponential, max configurable.\n  After max retries → WorkflowFailed + admin notification.\n  11.9 Extension points\n  New step types (including external HTTP), marketplace-distributed templates.\n"}