Posts

Showing posts with the label XOR

Tutoriel jBPM en Français : ❌ Gateway Exclusive (XOR)

    🚀 Introduction La  ❌ Gateway Exclusive (XOR)  dans jBPM est utilisée lorsque  seul un chemin  parmi plusieurs alternatives doit être emprunté. Elle évalue les conditions sur les flux de séquence sortants et dirige le processus vers la  première condition  qui s’avère vraie. C’est idéal pour les workflows de type approuver/rejeter. 🛠️ Prérequis jBPM / Business Central & KIE Server installés ☕ JDK 11+ (ou JDK 17) Un utilisateur avec le rôle  manager Accès :  http://localhost:8080/business-central 📝 Étape 1 : Créer un nouveau processus Se connecter à Business Central Créer un projet :  xor-approval ➕ Ajouter un Business Process :  XorApprovalProcess Id :  com.example.xorapproval Package :  com.example 🎨 Étape 2 : Concevoir le workflow Ajouter un nœud  Start (Début) Ajouter une  Tâche Humaine , assignée au rôle  manager ❌ Ajouter une  Gateway Exclusive (XOR) ✅ Ajouter un nœud  End (Fin...

jBPM Workflow Tutorial: ❌ Exclusive Gateway (XOR)

 🚀 Introduction The ❌ Exclusive Gateway (XOR) in jBPM is used when only one path should be taken from multiple alternatives. It evaluates conditions on outgoing sequence flows and directs the process to the first condition that evaluates to true . This makes it ideal for approve/reject style workflows. 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server installed ☕ JDK 11+ (or JDK 17) 👨‍💼 User with manager role 🌐 Access to: http://localhost:8080/business-central 📝 Step 1: Create a New Process 🔑 Log in to Business Central 📂 Create project: xor-approval ➕ Add Business Process: XorApprovalProcess Id: com.example.xorapproval Package: com.example 🎨 Step 2: Design the Workflow 🔵 Add a Start node 👤 Add a Human Task → assign to manager ❌ Add an Exclusive Gateway (XOR) ✅ Add an End node for Approval path ❌ Add another End node for Rejection path 🔗 Connect nodes: Start → Human Task → XOR Gateway → Approv...