BPM SLA Demo
Where the demo lives — the
workflow-demoplugin 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:
| SLA | Node | Demo deadline |
|---|---|---|
wd_manager_approve_sla | task_manager_approve | PT30S |
wd_hr_approve_sla | task_hr_approve | PT30S |
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_approveGET /api/bpm/monitor/instances/{processInstanceId}/slaGET /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