Posts

Tutoriel jBPM en Français : Exemple de Gateway (Flux Approuver/Rejeter)

   🚀 Introduction Dans ce tutoriel, vous apprendrez à utiliser une  Gateway  dans jBPM pour diriger votre processus selon des conditions. Nous allons construire un workflow simple de type approbation : Début → Tâche Humaine → Gateway → ✅ Chemin Approuvé / ❌ Chemin Rejeté → Fin 🛠️ Prérequis Bundle jBPM / Business Central & KIE Server (communautaire, version 7.x) ☕ JDK 11+ (JDK 17 fonctionne aussi) Un utilisateur avec le rôle  manager Accès via navigateur :  http://localhost:8080/business-central 📝 Étape 1 : Créer un nouveau projet Connectez-vous à Business Central Créez un projet nommé :  approval-gateway ➕ Ajoutez un nouveau Business Process :  ApprovalProcess Id :  com.example.approval Package :  com.example 🎨 Étape 2 : Concevoir le workflow Ajoutez un nœud  Start (Début) Ajoutez une  Tâche Humaine  → configurez-la : Nom :  Review Request Acteurs : manager Nom de tâche :  review-request Ajoutez une ...

Tutoriel jBPM en Français : Tous les Gateways Expliqués

    🚀 Introduction Les  Gateways  dans jBPM sont des nœuds de décision et de contrôle qui définissent comment les flux de processus divergent et convergent. Ils permettent aux workflows de  brancher ,  fusionner  ou  synchroniser  les chemins. Dans ce blog, nous allons explorer tous les gateways majeurs avec des exemples : ❌ Exclusive (XOR) : choisir un seul chemin 🟢 Inclusive (OR) : choisir un ou plusieurs chemins ➕ Parallel (AND) : exécuter tous les chemins en parallèle ⏳ Event-Based : attendre des événements externes ⚙️ Complex : conditions / synchronisation avancées 🛠️ Prérequis jBPM / Business Central & le bundle KIE Server ☕ JDK 11+ Accès :  http://localhost:8080/business-central ❌ Exclusive Gateway (XOR) 🎯 Objectif Choisir un chemin sortant basé sur une condition unique. 🔍 Exemple de flux Début → Tâche Humaine → ❌ Gateway → ✅ Fin d’Acceptation / ❌ Fin de Rejet ⚙️ Exemple de condition approved == true ou approved == fal...

Tutoriel jBPM en Français : Hello World ⚙️ Script Task

    🚀  Introduction Dans ce tutoriel, nous allons créer le workflow le plus simple possible avec jBPM utilisant une  ⚙️ Script Task . Le processus s’exécute automatiquement :  Début → ⚙️ Script Task → ✅ Fin , affichant un message dans les logs de la console. C’est l’exemple classique « Hello World » pour l’automatisation des processus métiers. ⚙️ Prérequis jBPM / Business Central & KIE Server installés (version communautaire 7.x ou 8.x) ☕ JDK 11+ (JDK 17 fonctionne également) Accès à Business Central : http://localhost:8080/business-central 📝 Étape 1 : Créer un nouveau processus Dans Business Central → ouvrez votre projet ou créez-en un nouveau. ➕ Cliquez sur  Add Asset → Business Process . ⚙️ Définissez les propriétés : Nom :  HelloWorldProcess Id :  com.example.helloworld Package :  com.example 🎨 Étape 2 : Concevoir le workflow Ajoutez un nœud  Start (Début) . ⚙️ Ajoutez une  Script Task . ✅ Ajoutez un nœud  End (Fin) ...

Tutoriel jBPM en Français : Début → Tâche Humaine → ✅ Fin (Étape par Étape)

   🚀 Ce que vous allez construire Un processus minimal jBPM avec trois nœuds :  Début → Tâche Humaine → Fin . Vous allez le déployer depuis  Business Central , lancer une instance, et compléter la tâche humaine comme utilisateur assigné.

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