Getting Started
Learn how to create your first insurance process flow with the Process Editor.
Table of contents
- Opening the Editor
- Creating Your First Process
- Example: Simple Quote Process
- Validation
- Saving Your Work
- Try Examples
- Next Steps
Opening the Editor
- Live Demo: Visit the live demo to start immediately
- Local Development: Run
pnpm run devand openhttp://localhost:3000
Creating Your First Process
Step 1: Add the Initial Task
- From the palette (left side), drag a Task onto the canvas
- This task will automatically become your initial state (since it has no incoming flows)
- Click the task to select it and view its properties in the Properties Panel (right side)
Step 2: Set Task Properties
In the Properties Panel, configure:
- State Name: Use snake_case format (e.g.,
created,waiting_approval) - Element ID: Unique identifier (e.g.,
task_created) - Description: Optional documentation
Step 3: Add More States
- Right-click your first task
- Choose “Append Task” to add a connected task, or
- Choose “Append End Event” to add a terminal state
- The connection (sequence flow) is created automatically
Step 4: Configure Transitions
- Click a sequence flow (the arrow between elements)
- In the Properties Panel, set:
- Event Name: UPPER_SNAKE_CASE (e.g.,
APPROVE,SUBMIT) - Flow ID: Unique identifier (e.g.,
flow_approve) - Guard: Optional guard function (e.g.,
isReviewer) - Actions: Comma-separated side effects (e.g.,
recordPayment, sendEmail)
- Event Name: UPPER_SNAKE_CASE (e.g.,
Step 5: Add Timers (Optional)
- Right-click a task
- Choose “Add Timer Boundary Event”
- Configure the timer in Properties Panel:
- Timer ID: Unique identifier
- Timer Type: Choose
DURATIONorDATE - ISO Duration: For duration timers (e.g.,
P14Dfor 14 days) - At DateTime: For date timers (ISO format)
- Timer Event: Event to trigger when timer fires
Example: Simple Quote Process
Let’s create a basic insurance quote process:
- Create Task:
created(initial state) - Append Task:
approved - Append End Event:
completed - Configure Flows:
created→approved: EventAPPROVE, GuardisReviewerapproved→completed: EventCOMPLETE
- Add Timer: 14-day timer on
approvedtask forCOLLECTION_EXPIRED
Validation
The editor validates your process in real-time:
- Green: No issues found
- Yellow Warning: Non-critical issues
- Red Error: Must be fixed before export
Common validation rules:
- Exactly one initial task (no incoming flows)
- All tasks must have state names
- Event names must be UPPER_SNAKE_CASE
- No duplicate events from the same state
- End events cannot have outgoing flows
Saving Your Work
Auto-save
- Automatic: Saves to browser localStorage every 2 seconds after changes
- Persistent: Survives page reloads and browser restarts
- Visual Feedback: Shows “Auto-saved” notifications
Manual Export
- Save BPMN: Export as
.bpmnXML file - Export MachineSpec: Export as
.machine.jsonfor your web application - Bundle Export: ZIP package with BPMN + JSON + manifest
Try Examples
Want to explore more complex processes? Check out our ready-to-use examples:
đź“„ Download and Import
- Visit Examples Page - Browse all available examples
- Download both
.bpmnand.machine.jsonfiles - Import into the editor using “Load BPMN” or “Import Spec”
- Customize for your specific needs
🎯 Recommended Examples
- Simple Approval - Basic approval workflow
- Quote Process - Insurance quote lifecycle
- Swimlane Process - Multi-role workflow
- Timer Workflow - Advanced timer handling
Next Steps
- Examples - Download ready-to-use process files
- Process Modeling Guide - Advanced modeling techniques
- MachineSpec Format - Understanding the JSON output
- Validation Rules - Complete rule reference