Posts

Showing posts with the label Parallel Gateway

Execution Stuck on the Parallel Gateway in BPMN (Camunda) – Causes and Fixes

Image
 Introduction While designing BPMN workflows in engines like Camunda, one of the most common runtime issues developers encounters is process execution getting stuck at a Parallel Gateway . At first glance, everything may look correct in the model, but the process instance never moves forward. Understanding how tokens behave at a parallel gateway is the key to solving this problem. A Parallel Gateway (AND Gateway) splits the workflow into multiple parallel paths and synchronizes them later. The workflow continues only when all incoming sequence flows reach the gateway . If one token never arrives, the process waits indefinitely , causing the execution to appear stuck. BPMN Parallel Gateway Basics A parallel gateway works in two ways: 1️⃣ Split (Fork) One incoming token creates multiple parallel tokens. Example: Task A | Parallel Gateway / \ Task B Task C Both Task B and Task C execute simultaneously. 2️⃣ Join (Synchronization) A joining parallel gateway waits for tok...

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...