BPM SLA Demo

Where the demo lives — the workflow-demo plugin used throughout this page ships with the enterprise application composition, not in the community repository. Every concept, API and command shown here works the same against the community edition's SmartEngine BPM; only the demo source files are not in this repo.

The complete write-up is in Chinese for now: BPM SLA 示例. This page keeps the English route accurate and links to the runnable source-backed scenario.

workflow-demo configures two node-level SLAs for wd_leave_approval:

SLANodeDemo deadline
wd_manager_approve_slatask_manager_approvePT30S
wd_hr_approve_slatask_hr_approvePT30S

The source is plugins/workflow-demo/config/sla.json. At runtime, SlaActivationListener creates an SLA record on task_assigned, and SlaSchedulerService scans active records every 15 seconds. The hard E2E signal is status=overdue from GET /api/bpm/monitor/instances/{processInstanceId}/sla.

Useful API surfaces:

  • GET /api/bpm/sla-configs/by-target?targetType=NODE&targetKey=task_manager_approve
  • GET /api/bpm/monitor/instances/{processInstanceId}/sla
  • GET /api/bpm/monitor/sla-records?status=overdue

For screenshots, seed pending leave approvals first:

node docs/screenshot-seeds/seed_workflow_demo.mjs --base-url=http://127.0.0.1:5173 --min-requests=12

Next: BPM End-to-End Walkthrough, BPM Rule Demo.