Posts

Showing posts with the label Business Process

jBPM Workflow Tutorial: 📢 Signals in Business Processes

  🚀 Introduction In jBPM, 📢 Signals are used to communicate across processes . They allow one process instance to broadcast an event that other processes (or nodes within the same process) can listen to and react upon . Signals are useful for: 🔔 Triggering one process from another ⏸️ Interrupting a process flow when an event happens 🔄 Synchronizing multiple running processes Unlike messages , which are point-to-point, signals are broadcast — meaning all listeners waiting for that signal will react. 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server installed ☕ JDK 11+ (or JDK 17) 🌐 Access to: http://localhost:8080/business-central 📝 Step 1: Create a Signal in Business Central 🔑 Open your project in Business Central ➕ Add a new process or open an existing one Go to Process Properties → Global Definitions Add a Signal definition (e.g., paymentSignal ) 🎨 Step 2: Using Signal Events in a Process There are three main w...

jBPM Workflow Tutorial: ⚙️ Complex Gateway

 🚀 Introduction The ⚙️ Complex Gateway in jBPM is used for advanced synchronization and branching rules that cannot be modeled using other gateways. It allows you to specify complex conditions , such as: “Wait for any 2 out of 3 tasks before proceeding” “Proceed when either Task A is done OR both Task B and Task C are complete” “Loop until a specific condition is satisfied” ⚙️ Complex Gateways are less common, but very useful in sophisticated workflows . 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server installed ☕ JDK 11+ or JDK 17 👨‍💼 Users assigned to required Human Tasks 🌐 Access: http://localhost:8080/business-central 📝 Step 1: Create a New Process 🔑 Log in to Business Central 📂 Create a project: complex-gateway-demo ➕ Add Business Process: ComplexProcess Id: com.example.complex Package: com.example 🎨 Step 2: Design the Workflow 🔵 Add a Start node ➕ Add a Parallel Gateway (to split into multipl...

jBPM Workflow Tutorial: ⏳ Event-Based Gateway

  🚀 Introduction The ⏳ Event-Based Gateway in jBPM is used when the process must wait for external events before continuing. Unlike ❌ Exclusive or 🟢 Inclusive Gateways, which rely on data conditions , the Event-Based Gateway listens for events such as: 📩 Message Events ⏰ Timer Events 🔔 Signal Events It then follows the path of the event that occurs first . 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server installed ☕ JDK 11+ (or JDK 17) 🌐 Access: http://localhost:8080/business-central 🔔 Basic understanding of events in BPMN2 (Message, Timer, Signal) 📝 Step 1: Create a New Process 🔑 Log in to Business Central 📂 Create a project: event-gateway-demo ➕ Add Business Process: EventGatewayProcess Id: com.example.eventgateway Package: com.example 🎨 Step 2: Design the Workflow 🔵 Add a Start node ⏳ Add an Event-Based Gateway 📩 Add an Intermediate Message Catch Event (Wait for customer response) ⏰ A...

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

jBPM Workflow Tutorial: 🟢 Inclusive Gateway (OR)

 🚀 Introduction The 🟢 Inclusive Gateway (OR) in jBPM allows a process to follow one or more paths simultaneously , depending on conditions. Unlike ❌ Exclusive Gateway (XOR), which picks only one path, the Inclusive Gateway can trigger multiple outgoing flows when their conditions evaluate to true. This makes it useful for scenarios like multi-step reviews, conditional notifications, or parallel-but-optional actions . 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server installed ☕ JDK 11+ (or JDK 17) 👨‍💼 User roles with analyst/manager 🌐 Access to: http://localhost:8080/business-central 📝 Step 1: Create a New Process 🔑 Log in to Business Central 📂 Create a project: inclusive-gateway-demo ➕ Add Business Process: InclusiveProcess Id: com.example.inclusive Package: com.example 🎨 Step 2: Design the Workflow 🔵 Add a Start node 🟢 Add an Inclusive Gateway (OR) 📧 Add an Email Task (Send Notification) 👤 Add a Hu...

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

jBPM Workflow Tutorial: 🔀 All Gateways Explained

🚀 Introduction Gateways in jBPM are decision and control nodes that define how process flows diverge and converge. They allow workflows to branch, merge, or synchronize. In this blog, we’ll explore all major gateways with examples: ❌ Exclusive (XOR): pick one path 🟢 Inclusive (OR): pick one or many ➕ Parallel (AND): run all paths in parallel ⏳ Event-Based: wait for external events ⚙️ Complex: advanced conditions/synchronization

jBPM Workflow Tutorial: 🔀 Gateway Example (Approve/Reject Flow)

🚀 Introduction In this tutorial, you’ll learn how to use a 🔀 Gateway in jBPM to make your process follow different paths based on conditions. We’ll build a simple approval workflow: 🔵 Start → 👤 Human Task → 🔀 Gateway → ✅ Approved Path / ❌ Rejected Path → 🔴 End 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server bundle (7.x or 8.x community) ☕ JDK 11+ (JDK 17 also works) 👨‍💼 User with manager role 🌐 Browser access:  http://localhost:8080/business-central 📝 Step 1: Create a New Project 🔑 Log in to Business Central 📂 Create project: approval-gateway ➕ Add new Business Process: ApprovalProcess Id: com.example.approval Package: com.example 🎨 Step 2: Design the Workflow 🔵 Add a Start node 👤 Add a Human Task → configure: 🏷️ Name: Review Request 👥 Actors: manager 📝 Task Name: review-request 🔀 Add an Exclusive Gateway (XOR) after Human Task ✅ Add an End node for Approved path ❌ Add anot...

jBPM Workflow Tutorial: Hello World ⚙️ Script Task

🚀 Introduction In this tutorial, we’ll create the simplest possible workflow in jBPM using a ⚙️ Script Task . The process runs automatically from 🔵 Start → ⚙️ Script Task → ✅ End , printing a message in the console logs. This is the classic “Hello World” example for business process automation. 🛠️ Prerequisites 💻 jBPM/Business Central & KIE Server bundle installed (7.x or 8.x community) ☕ JDK 11+ (JDK 17 also works) 🌐 Access to Business Central: http://localhost:8080/business-central 📝 Step 1: Create a New Process 🔑 In Business Central → open your project or create a new one. ➕ Click Add Asset → Business Process . ⚙️ Set properties: Name: HelloWorldProcess Id: com.example.helloworld Package: com.example 🎨 Step 2: Design the Workflow 🔵 Add a Start node. ⚙️ Add a Script Task . ✅ Add an End node. 🔗 Connect them: Start → Script Task → End . ✍️ Step 3: Configure the Script Task ⚙️ Select the Script Task → go t...