Posts

Showing posts with the label Exclusive Gateway

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