Activity diagrams: parallel fork/join
Introduction
Parallel activity diagrams express a scenario where multiple tasks execute concurrently and then converge. Both PlantUML and Mermaid support fork/join-style syntax, though their details differ. This article uses the same scenario — “after receiving an order, simultaneously check inventory and verify payment, then confirm” — rendered in both engines for direct comparison.
PlantUML
1 | @startuml |
Mermaid
1 | flowchart TD |
Mermaid has no native
fork/joinnode; this example uses a parallel branch symbol/"..."/with&convergence to achieve equivalent logic.
Side by side
| Feature | PlantUML | Mermaid |
|---|---|---|
| Parallel branch keywords | fork / fork again |
No native support; uses parallel branch symbol |
| Merge keyword | join |
& convergence |
| Swimlanes (partitions) | |Department| |
Not supported |
| Render style | Classic UML flowchart | Horizontal flowchart |
Wrap-up
PlantUML’s fork/join follows the UML standard and suits formal modeling; Mermaid achieves the same effect via parallel branches and & convergence, winning on simplicity. Either approach clearly conveys parallel logic — pick based on your needs.
- Title: Activity diagrams: parallel fork/join
- Author: puml.online
- Created at : 2026-09-10 09:00:00
- Updated at : 2026-12-06 10:29:22
- Link: https://puml.online/en/blog/activity-diagram-parallel-fork/
- License: This work is licensed under CC BY-NC-SA 4.0.