Posts

Showing posts with the label BPMN Parallel Gateway

Camunda Parallel Gateway expliqué : Fork, Join et scénarios de blocage

Image
  Camunda Parallel Gateway expliquĂ© (Fork, Join et scĂ©narios de blocage) Le Parallel Gateway (passerelle parallèle) dans Camunda est très puissant, mais aussi souvent mal compris. Beaucoup de dĂ©veloppeurs rencontrent : Processus bloquĂ©s au gateway Problèmes de synchronisation Deadlocks (blocages) Dans ce guide, nous expliquons clairement : Le fork (division parallèle) Le join (synchronisation) Les scĂ©narios de blocage et leurs solutions 🔹 1. Qu’est-ce qu’un Parallel Gateway ? Un Parallel Gateway (AND Gateway) permet de : Diviser l’exĂ©cution en plusieurs branches Synchroniser plusieurs branches 👉 Il fonctionne avec des tokens , pas avec des conditions 🔹 2. Fork (division parallèle) Lorsqu’un fork est atteint : 👉 Camunda : CrĂ©e plusieurs tokens ExĂ©cute toutes les branches en parallèle Exemple : Envoyer un email Mettre Ă  jour une base Appeler une API 👉 Tout s’exĂ©cute en parallèle 🔹 3. Join (synchronisation) Au niveau du join : 👉 Camunda attend que : Tous les tokens arrivent P...

Camunda Parallel Gateway Explained: Fork, Join, and Deadlock Scenarios

Image
  Camunda Parallel Gateway Explained (Fork, Join, and Deadlock Scenarios) Parallel gateways in Camunda are powerful—but also one of the most misunderstood BPMN elements . Many developers face issues like: Execution stuck at gateway Tokens not synchronizing Unexpected deadlocks In this guide, we’ll clearly explain: Fork (parallel split) Join (synchronization) Deadlock scenarios & fixes 🔹 1. What is a Parallel Gateway? A Parallel Gateway (AND Gateway) is used to: Split execution into multiple paths Synchronize multiple paths back into one 👉 It works with tokens , not conditions 🔹 2. Fork (Parallel Split) When execution reaches a fork: 👉 Camunda: Creates multiple tokens Executes all outgoing paths simultaneously Example: Send email Update database Call external API 👉 All run in parallel 🔹 3. Join (Synchronization) At join gateway: 👉 Camunda waits until: All incoming tokens arrive Then: Merges them into one Key Rule: 👉 Missing token = process stuck 🔹 4. Common Deadlock Sc...

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