jBPM Workflow Tutorial: ➕ Parallel Gateway (AND)
🚀 Introduction
The ➕ Parallel Gateway (AND) in jBPM is used to split a process into multiple branches that run at the same time, and to synchronize branches back together.
Unlike ❌ Exclusive (XOR) or 🟢 Inclusive (OR), the Parallel Gateway does not evaluate conditions — it always executes all outgoing paths in parallel.
This is useful for workflows where multiple tasks must happen together, such as sending notifications, logging events, and running approvals simultaneously.
🛠️ Prerequisites
-
💻 jBPM/Business Central & KIE Server installed
-
☕ JDK 11+ (JDK 17 also works)
-
👨💼 Roles with access to tasks (e.g.,
manager,analyst) -
🌐 Access:
http://localhost:8080/business-central
📝 Step 1: Create a New Process
-
🔑 Log in to Business Central
-
📂 Create a project: parallel-gateway-demo
-
➕ Add Business Process: ParallelProcess
-
Id:
com.example.parallel -
Package:
com.example
-
🎨 Step 2: Design the Workflow
-
🔵 Add a Start node
-
➕ Add a Parallel Gateway (Split)
-
📧 Add an Email Task (Send Notification)
-
📊 Add a Report Task (Generate Report)
-
👤 Add a Human Task (Manager Approval)
-
➕ Add a Parallel Gateway (Join)
-
✅ Add an End node
🔗 Connect them:
Start → ➕ Split → (📧 Email, 📊 Report, 👤 Human Task) → ➕ Join → ✅ End
⚙️ Step 3: Behavior of Parallel Gateway
-
At the Split Gateway, all outgoing paths fire together
-
At the Join Gateway, process waits until all incoming paths are complete before moving forward
🔨 Step 4: Build and Deploy
-
💾 Save the process
-
🛠️ Build & Install
-
📦 Deploy to KIE Server
▶️ Step 5: Run the Process
-
Go to Manage → Process Definitions
-
▶️ Start a new instance of ParallelProcess
-
All three tasks (📧 Email, 📊 Report, 👤 Human Task) will be active at the same time
-
Once all tasks complete → flow continues to the End node
📌 Step 6: Example Use Cases
-
📧 Notify customers while 📊 generating reports
-
👤 Approvals while sending system alerts
-
Multi-team collaboration where tasks run in parallel
👉 Watch jBPM Workflow Tutorial: ➕ Parallel Gateway (AND) in Action better:
🛠️ Troubleshooting
-
❌ Process stuck at Join? → Ensure all parallel paths complete
-
⚠️ One branch skipped? → Check connections; Parallel Gateways do not use conditions
-
🔄 Overlapping roles? → Assign proper actors to Human Tasks
🎯 Conclusion
The ➕ Parallel Gateway (AND) is essential for workflows requiring parallel execution and synchronization.
It ensures that:
-
➕ All branches run together at split
-
⏸️ The process waits until all are done at join
By mastering Parallel Gateways, you can build real-world business processes that handle simultaneous actions — such as approvals, notifications, and system tasks — in an efficient and synchronized way.
💼 Professional Support Available
If you are facing issues in real projects related to enterprise backend development or workflow automation, I provide paid consulting, production debugging, project support, and focused trainings.
Technologies covered include Java, Spring Boot, PL/SQL, Azure, and workflow automation (jBPM, Camunda BPM, RHPAM).
📧 Contact: ishikhanirankari@gmail.com | info@realtechnologiesindia.com
🌐 Website: IT Trainings | Digital metal podium
Comments
Post a Comment