22. Example BPMN Processes
BPMN Central ships with these ready-to-run sample processes (the seed library). Each one is a real, deployable workflow chosen to exercise a specific set of capabilities — import any of them into the modeler to see the patterns first-hand.
| Process | Description |
|---|---|
hardware_request.bpmn |
IT Hardware Request: Start form with hidden validation (rule_*) and type hints, plus an expression-math gateway (cost > 1000) that routes approvals. |
leave_request.bpmn |
Leave Request: Start form → manager approval with a revise/resubmit loop, HR acknowledgment, a file upload, and an SLA boundary timer that escalates via reassignTask + email. |
expense_reimbursement.bpmn |
Expense Reimbursement: Gateway revise/resubmit loop, hidden validation (rule_*), receipt file upload, an assignment email listener, and an SLA escalation that reassigns the task (reassignTask). |
expense_report_dynamic.bpmn |
Expense Report (Dynamic Items): The textarea-to-list pattern — free-text items parsed by a Script Task into structured JSON, a manager review with a revision loop, a list display, and a styled generatePdf summary. |
internal_service_request.bpmn |
Internal Service Request: Dynamic role picker (role_*), expression= variable aliasing, default= static instructions, a decision gateway, and an assignment email listener. |
candidate_interview.bpmn |
HR Candidate Interview: Dynamic user picker (users_*) driving candidateUsers assignment, an inline JavaScript Script Task (tracking-id generation), read-only labels, and hidden validation. |
weekly_report.bpmn |
Weekly Report: Role fan-out (assignUsersByRole) into a parallel multi-instance where every member of a chosen role submits a report (with file upload), followed by a consolidated review. |
policy_acknowledgment.bpmn |
Company Policy Acknowledgment: HR uploads a policy PDF (auto-shown to everyone via the Process Documents card), a role fan-out parallel multi-instance acknowledgment, and a non-interrupting SLA timer that sends email reminders (sendReminder). |
idea_poll.bpmn |
Idea Poll: Role fan-out parallel multi-instance that collects each member's argument, variable aggregation into a list, GraalJS array handling, and a styled generatePdf summary. |
company_vote.bpmn |
Company Vote: Company-wide parallel vote (role fan-out + multi-instance), variable aggregation of votes and comments, a Script Task that computes the 70%-approval gateway, a list display, and a generatePdf result. |
wfhelper_test.bpmn |
WF Helper Test Suite: A runnable catalogue of the wf.* platform helpers ("the made-up rules"). Enter a test amount + comment and every helper's output is echoed back as read-only labels, plus a generatePdf document that exercises all the HTML-builder helpers (tables, badges, key-value, QR code, signature line). ~35 helpers spanning dates, numbers/currency, strings, directory/roles, and PDF/HTML building — see Script Tasks & Dynamic Calculations for the full API. |
Process Feature Matrix
To help you find the right code snippet, here is a breakdown of exactly which BPMN Central capabilities each sample process naturally exercises.
| Feature / Capability | Hardware | Leave | Exp. Reimb. | Exp. Dynamic | Service Req. | Interview | Weekly | Policy Ack. | Idea Poll | Company Vote | WF Helper |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Start Form Properties | ✅ | ✅ | ✅ | ✅ | ✅ | ||||||
File Upload (file hint) |
✅ | ✅ | ✅ | ✅ | |||||||
list Type Hint |
✅ | ✅ | ✅ | ||||||||
| Dynamic form input (textarea → array) | ✅ | ||||||||||
Read-Only Label (type="label") |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
Hidden Validation (rule_*) |
✅ | ✅ | ✅ | ✅ | ✅ | ||||||
| Decision Gateway (enum condition) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |||||
| Revision / Resubmit Loop | ✅ | ✅ | ✅ | ||||||||
Expression Math (cost > 1000) |
✅ | ||||||||||
Dynamic User Picker (users_*) |
✅ | ||||||||||
Dynamic Role Picker (role_*) |
✅ | ✅ | ✅ | ||||||||
expression= Alias |
✅ | ||||||||||
default= Static Seed |
✅ | ✅ | ✅ | ✅ | ✅ | ||||||
Role Fan-Out (assignUsersByRole) |
✅ | ✅ | ✅ | ✅ | |||||||
| Multi-Instance (Parallel) | ✅ | ✅ | ✅ | ✅ | |||||||
| Variable Aggregation | ✅ | ✅ | |||||||||
| Script Task (JavaScript) | ✅ | ✅ | ✅ | ✅ | ✅ | ||||||
Platform Helpers (wf.*) |
✅ | ✅ | ✅ | ✅ | |||||||
PDF Generation (generatePdf) |
✅ | ✅ | ✅ | ✅ | |||||||
Assignment Email Listener (taskEmailListener) |
✅ | ✅ | ✅ | ||||||||
| SLA Boundary Timer + Escalation | ✅ | ✅ | ✅ |
Looking for the
wf.*helper functions?wfhelper_test.bpmnis a runnable catalogue of every platform helper — import it and run it to see live output for each one. The full API reference lives in Script Tasks & Dynamic Calculations.