Mastering Parallel Multi-Instance Markers in BPMN

Read this post in:

Mastering Parallel Multi-Instance Markers in BPMN

In the world of Business Process Model and Notation (BPMN), efficiency is often dictated by how well a process handles multiple pieces of data. While traditional sequential processing forces a system to handle one item after another, modern business operations frequently require simultaneous action. This is where the Parallel Multi-Instance Marker becomes an essential architectural tool for your workflows.

This tutorial explores the mechanics of the parallel multi-instance marker, how it transforms a single task into a scalable engine for mass operations, and how to implement it effectively using Visual Paradigm.

What is a Parallel Multi-Instance Marker?

At its core, a multi-instance task allows a single activity to be executed multiple times. However, the “parallel” aspect is the key differentiator. Instead of waiting for one instance to finish before starting the next, the parallel marker instructs the process engine to launch all required instances simultaneously.

Visually, this is represented by three vertical parallel lines (|||) located at the bottom of the activity box. This symbol acts as a signal to the BPMN engine that the enclosed task is not a single event, but a batch of concurrent events.

Core Components of the Architecture

Implementing this pattern requires understanding three critical technical concepts: the visual syntax, the instance count logic, and the lifecycle management.

1. Visual Symbolism and Syntax

The ||| symbol is the universal indicator for parallelism in BPMN. When a developer or analyst sees this at the bottom of a task, they immediately understand that the task is “repeatable” and “concurrent.”

2. Determining the Instance Count

How does the system know how many times to run? It relies on a numeric expression evaluated at the start of the task. This expression usually references a collection or a list variable. For example, if a process variable is named applicants and it holds a list of 5 candidates, the engine calculates the length of that list to determine that 5 parallel instances are required.

3. Data Handling and Independence

This is the most powerful feature of parallel instances. Each instance operates independently with its own unique input parameters. The process engine creates a unique context for every single instance.

If you are processing a list of applicants, Instance 1 receives Applicant A’s data, Instance 2 receives Applicant B’s data, and so on. They run in isolation from one another, meaning a delay or failure in processing Applicant B does not inherently block the processing of Applicant A.

Real-World Application: Mass Communication

To visualize the power of this architecture, consider a recruitment workflow. A hiring manager has shortlisted five candidates and needs to send interview invitations.

Without Parallel Instances: The system would send an email to Candidate 1. It would wait for that email to be confirmed. Then it would send an email to Candidate 2, and so on. This creates a sequential bottleneck.

With Parallel Multi-Instance: The system identifies the list of five candidates. It instantly triggers five “Send Invitation” tasks simultaneously. The process does not wait for the emails to be opened or read; it simply ensures the system triggers the send action for all five at once. This drastically reduces the total time required to complete the “Interview Scheduling” phase.

Visual Paradigm Implementation

When using Visual Paradigm (VP) to model this, the tool simplifies the complexity of the underlying logic. You do not need to manually code loops or “for” statements. Instead, you utilize the Data Mapping feature.

By binding a collection (like a list of candidates) to the multi-instance marker, Visual Paradigm automatically generates the necessary iteration logic in the background. The tool handles the creation of the unique context for each parallel thread, ensuring that the process engine receives the correct data for each specific instance.

Completion Lifecycle

One of the most common points of confusion in process modeling is when a multi-instance task is considered “complete.” In a parallel setup, the parent activity (the main process flow) enters a wait state. It pauses at the end of the task until all child instances have finished.

The process cannot proceed to the next step—such as “Notify HR”—until the final email has been sent, the final document has been processed, or the last parallel thread has resolved. This synchronization ensures data integrity and process completeness.