Skip to main content

BPMN Modeler

The BPMN modeler is the console's diagram editor. You draw a process, configure each element, save it as a draft, test run it with real variables and deploy it, without leaving the page.

The first half of this page models a first process step by step: a claim comes in, a business rule task calls a DMN decision to triage it, and a gateway routes the claim on the result. The video shows the same steps. The second half is a reference for each part of the editor.

The BPMN modeler with the Claim handling process open: the palette on the left, the diagram in the middle and the process properties on the right, with Save, Deploy and Run in the header.The BPMN modeler with the Claim handling process open: the palette on the left, the diagram in the middle and the process properties on the right, with Save, Deploy and Run in the header.
The finished Claim handling process: palette on the left, canvas in the middle, properties of the selected element on the right.

Model a first process​

The example calls a DMN decision called Claim triage, which returns a route (AUTO_APPROVE, REVIEW or REJECT) and a payoutCap. Any deployed decision works the same way. To build one first, see the DMN modeler.

1. Create the process​

Switch the sidebar to BPMN, open BPMN Definitions and click New Process. In the header, set the name to Claim handling and the definitions ID to claim_handling. Click the empty canvas: the properties panel now shows the process itself. Set the process ID to handle_claim. Applications start the process by this ID.

Drag a Start Event from the palette onto the canvas and name it Claim received.

2. Append a task from the context pad​

Select the start event. The context pad above it appends the next element and connects it in one click. Append a task, then use Change Type to turn it into a Business Rule Task named Triage claim.

The context pad above a selected business rule task: buttons to connect, append a task, append a gateway, append an end event, and delete.The context pad above a selected business rule task: buttons to connect, append a task, append a gateway, append an end event, and delete.
The context pad on a selected element: connect, append a task, a gateway or an end event, and delete.

3. Call the decision​

In the properties panel of Triage claim:

  1. Under Called Decision, pick Claim triage. The list holds every deployed decision in the project.
  2. Accept Prepopulate: the modeler adds one input mapping per input the decision expects. Fill in where each value comes from, for example claimAmount for the input Claim amount.
  3. Set Result Variable to triage. The decision's result lives in that variable inside the task only.
  4. Under Output Mappings, map triage.route to route and triage.payoutCap to payoutCap. Only these two reach the rest of the process.

Binding stays on Latest, so the task follows new versions of the decision. Version pins one.

The properties panel of the business rule task Triage claim, showing the called decision Claim triage, the result variable triage, the Latest binding and the first input mappings.The properties panel of the business rule task Triage claim, showing the called decision Claim triage, the result variable triage, the Latest binding and the first input mappings.
The called decision, its result variable and binding, and the input mappings the modeler prepopulated from the decision.

4. Route on the result​

Append an exclusive gateway to Triage claim and name it Route?. Then give it three outgoing paths:

FlowConditionLeads to
Auto approveroute = "AUTO_APPROVE"A service task Issue payout, then the end event Claim paid
Reviewroute = "REVIEW"A user task Review claim, then Issue payout
Rejectnone, marked Default flowThe end event Claim rejected

Type a condition in the flow's Condition field as plain FEEL. The modeler stores it with the leading = that marks an expression. The default flow needs no condition: it is taken whenever no other flow matches. The gateways reference has the full rules.

5. Save and fix what validation finds​

Click Save. The modeler validates the diagram before it stores anything. Here it reports that Issue payout is a service task without a task type: an alert lists the problem and the element shows a badge on the canvas.

Select Issue payout and set Task Definition type to issue-payout, the name a worker polls for, and Retries to 3. Map payoutCap to amount as its input and paymentId back out. On Review claim, set Candidate Groups to claims-team. Save again: the process is stored as a draft, and Deploy and Run appear in the header.

6. Test run it​

Click Run, enter the starting variables as JSON and click Start:

{ "claimAmount": 15000, "policyTier": "STANDARD", "incidentType": "THEFT", "priorClaims": 1 }

The triage sends this claim to review, so the instance waits at Review claim, highlighted on the canvas. The run panel lists the waiting task. Enter its output, for example {"approvedAmount": 11000}, and click Complete Task. With no worker running yet, complete the Issue payout job the same way, and the instance ends at Claim paid. A worker of issue-payout would not receive the job anyway: a test run's jobs go to draft:issue-payout, see Test instance.

A test run of Claim handling waiting at the user task Review claim, highlighted on the canvas. The run panel shows the pending user task assigned to claims-team, a Complete Task button and the history so far.A test run of Claim handling waiting at the user task Review claim, highlighted on the canvas. The run panel shows the pending user task assigned to claims-team, a Complete Task button and the history so far.
A test run waiting at Review claim. The run panel shows the pending task, its assignment and the history so far.

7. Deploy​

Click Deploy. The header badge switches to Deployed, and applications can now start the process by its ID, handle_claim. From here on, every save creates a new version, and the deployed version stays as it is.

Layout​

The modeler is a three-pane layout:

PaneContents
Left - paletteCategorised list of elements, search, advanced-mode toggle
Center - canvasDiagram area with toolbar, view controls, selection toolbar
Right - properties panelProperties for the selected element

A header bar above the canvas holds the diagram name, the definitions ID, deployment status, and the Save, Deploy, and Run actions.

Palette​

The palette is grouped into Events, Activities, Gateways, Structural and Annotations. Each entry can be dragged onto the canvas to create that element.

Type into the search field to filter the palette across categories.

Advanced mode​

The palette is split into a basic set (the elements you'll use most) and an extended set (everything else). The extended set is hidden until you flip the Advanced switch.

What appears in basic mode:

CategoryBasic
EventsStart event, End event
ActivitiesGeneric task, Service task, User task
GatewaysExclusive, Parallel
Structural(none - switch to advanced for sub-processes, call activity, participant)
AnnotationsText annotation

Advanced mode adds intermediate/boundary events, the remaining task types (manual, send, receive, script, business-rule), inclusive and event-based gateways, and structural elements (sub-process, ad-hoc sub-process, call activity, participant).

The palette in advanced mode, listing events, every task type, the four gateways, the structural elements and text annotation.The palette in advanced mode, listing events, every task type, the four gateways, the structural elements and text annotation.
The palette with Advanced Mode on.

Drag-and-drop​

Drag a palette item onto the canvas to drop a new node at the cursor position. Dropping on top of a sub-process or pool nests the new node inside that container.

Pools and lanes​

Dropping a Participant entry creates a pool. The first time you drop one onto a plain-process diagram, the existing nodes are auto-wrapped into the new pool. Lanes are added per-pool from the pool's own toolbar - there's no separate lane entry in the palette.

Canvas​

Selection and the context pad​

Selecting a node reveals a context pad - a hover toolbar with the most common follow-up actions:

ActionEffect
ConnectDraw a sequence flow from this node to another one
Append taskCreate a new service task connected from this node
Append gatewayCreate a new exclusive gateway connected from this node
Append end eventCreate a new end event connected from this node
Expand / collapse(sub-process only) Toggle the inline view of the sub-process contents
DeleteRemove the node and its incident edges

Morph menu​

A node's type can be changed in place via the morph action on the selection toolbar. The available targets depend on what the selection is:

If you have…You can morph to…
Any taskAny of the eight task types (generic / service / user / manual / send / receive / script / business-rule)
Start eventNone / Message / Timer / Signal. Inside an event sub-process: also Error, Escalation, Conditional
End eventNone / Message / Error / Escalation / Terminate / Compensation
Intermediate eventAny catch type (Message / Timer / Signal / Link) or any throw type (None / Message / Escalation / Compensation / Signal / Link)
Boundary eventInterrupting (Message / Timer / Error / Escalation / Signal / Conditional), Non-interrupting (Message / Timer / Escalation / Signal / Conditional), or Compensation
GatewayExclusive / Parallel / Inclusive / Event-based

Morphing cleans up stale configuration: switching away from a worker-backed task drops its task-definition and headers, switching a start or end event re-shapes the I/O mapping (start events only produce data, end events only consume it), switching to a gateway type that doesn't support a default flow clears the default-flow marker.

Some morph targets are hidden when they would produce an invalid graph - for example, error/escalation/conditional start events are only offered when the start event is inside an event sub-process.

Connecting nodes​

Drag from a node's edge handle to another node to create a sequence flow. Cross-pool connections are message flows (rendered with a different style), same-scope connections are sequence flows.

A connection is rejected when:

  • The source and target are the same node.
  • The two nodes belong to different scopes (for example, a node inside a sub-process can't connect directly to a node in the parent process - use the sub-process's own boundary).
  • A boundary event would connect outside its host activity's scope.

Sub-processes​

Sub-processes can be expanded or collapsed via their context pad. When expanded, their internal flow nodes are visible and editable inline. When collapsed, the sub-process is shown as a single node and its contents are hidden until you re-expand or drill in.

Canvas toolbar​

The canvas has a toolbar with:

ActionEffect
Auto-layoutRe-arranges nodes into a tidy left-to-right flow
Undo / RedoPer-edit history within the current modeling session
View XMLOpen a modal showing the BPMN 2.0 XML the canvas currently produces, with copy-to-clipboard
Import XMLReplace the current diagram with parsed BPMN XML
Download XMLSave the current XML to a file
View settingsPick the edge style and canvas background

View settings​

The view-settings menu controls cosmetic canvas options that aren't saved into the diagram:

Edge styleNotes
BezierSmooth curves
StraightDirect lines
StepRight-angled, with hard corners
Smooth step (default)Right-angled, with rounded corners
BackgroundNotes
Dots (default)Dot grid
LinesLine grid
CrossCrosshair grid

These preferences are per-user, not per-diagram.

Properties panel​

Selecting an element shows its properties on the right. The fields available depend on the element type:

ElementProperties exposed
All flow nodesID, name, lane assignment (when in a pool with lanes)
Service / send taskTask definition (worker type, retries), task headers, I/O mapping
Manual / generic taskI/O mapping
User taskAssignment (assignee, candidate users, candidate groups), form (form key, form ID), I/O mapping, headers
Script taskScript body, script format (FEEL), I/O mapping, headers
Business-rule taskCalled decision (decision ID, result variable, binding Latest or Version, and the pinned version), I/O mapping, headers
Receive taskReferenced message, I/O mapping, headers
Call activityCalled process ID, binding and pinned version, propagate-all-variables flag, I/O mapping, multi-instance characteristics
Sub-process / event sub-processI/O mapping, multi-instance characteristics, triggeredByEvent flag (event sub-process)
Ad-hoc sub-processActive-elements collection (FEEL), completion condition (FEEL), I/O mapping
Events (all positions)Event definition selector + the references it needs (messageRef, signalRef, etc.), interrupting flag (boundary), timer expression, condition expression
Sequence flowCondition expression, default-flow marker (when leaving an exclusive or inclusive gateway)
Exclusive / inclusive gatewayDefault outgoing flow

Expression fields (FEEL) use a CodeMirror-based editor with autocomplete, hover, and inline diagnostics powered by the FEEL language server.

For the full set of XML attributes and validation rules each element accepts, see the Elements reference.

Saving and versioning​

Saving runs validation first, then writes the diagram. The exact behavior depends on what the diagram is:

StateSave behavior
New diagram (never saved)Creates a new resource
Saved draft, not yet deployedAsks whether to overwrite the current draft or save as a new version
Saved and deployedAlways saves as a new version (the deployed version is preserved)

The diagram name and the definitions ID can be edited in the header. Both are saved with the diagram.

A "browser memory" notice appears when you have unsaved nodes on the canvas - until you save, the diagram lives only in the browser and would be lost if you navigate away.

Validation​

Validation runs every time you save. It produces two kinds of issues:

SeverityEffect
ErrorSave is blocked. Errors are listed in a banner at the top of the canvas, each pointing at the element ID where the issue lives
WarningSave proceeds. Warnings show as a transient notification

The same checks documented on each element page (default-flow rules, link-event pairing, boundary-event placement, multi-instance / standard-loop mutual exclusion, reference integrity, and so on) run here.

Deploying​

Saving and deploying are separate steps:

  1. Save writes the draft and arms validation. Drafts can be edited freely.
  2. Deploy activates a saved draft as a runnable version. Once a version is deployed it can be started, called from other processes, and reached by typed start events (message / signal / timer registrations).

The Deploy button only appears on saved drafts that aren't already deployed. After deploy, the badge in the header switches to Deployed.

Re-deploying a new version of the same process automatically retires the previous version's typed start-event registrations and arms the new ones.

Testing from the modeler​

Once a diagram has been saved (deployed or not), the Run button starts a test instance directly from the modeler.

  1. Click Run to open the Initial variables dialog.
  2. Enter the starting variables as JSON. Leave it as {} if the process doesn't need any.
  3. Click Start.

While a test instance is active:

  • The canvas becomes read-only and active elements are highlighted as the instance progresses.
  • A Run panel opens to the right of the canvas with the live instance state, incidents, and operational controls (resolve incidents, send a message, send a signal - see Operating live instances).
  • A "New Run" button replaces "Run" - clicking it starts a fresh test instance.
  • For ad-hoc sub-processes, the run panel offers a control to activate specific child activities by ID.
  • The test instance stays apart from production. Its jobs, messages and signals go by their names with the draft: prefix, and tasklists, job dashboards and counts leave it out. See Test instance.

Clicking a call activity while a test instance is running navigates into the live child instance, with a breadcrumb back to the parent.

Working with multiple processes​

A diagram that uses call activities invokes another process. The modeler keeps a breadcrumb of the chain you've drilled through.

ActionResult
Click a call activity in static editing modeOpens the called process in the modeler with a breadcrumb back to the parent
Click an ancestor in the breadcrumbNavigates back to that level and truncates the chain
Click "back"Returns to the immediate parent

The breadcrumb encodes the chain in the URL, so links to a call-activity-deep view are shareable.

Read-only mode​

The modeler is read-only when:

  • You don't have edit permission on the project (Viewer or Executor role).
  • The run panel of a test instance is open (the canvas locks until you close it).

In read-only mode the palette is hidden, the properties panel still shows the selected element's configuration, and the View XML / Download XML actions remain available.