Posts

Showing posts with the label BPM

Problème de sĂ©rialisation de l’API REST jBPM – Causes et solutions

 Lors de l’utilisation des API REST de jBPM , l’un des problèmes les plus frĂ©quents et les plus dĂ©routants rencontrĂ©s par les dĂ©veloppeurs concerne les erreurs de sĂ©rialisation lors du dĂ©marrage d’un processus ou du passage de variables . Ces erreurs apparaissent souvent uniquement Ă  l’exĂ©cution , parfois en environnement d’intĂ©gration ou de production , ce qui les rend plus difficiles Ă  diagnostiquer. Dans cet article, nous allons voir : Pourquoi les problèmes de sĂ©rialisation surviennent avec l’API REST jBPM Les messages d’erreur les plus courants Des solutions pratiques utilisĂ©es dans des projets rĂ©els đź”´ Messages d’erreur courants Vous pouvez rencontrer des erreurs telles que : Cannot find serializer for value 'ObjectValue [...]' ou Cannot write serialized value for variable 'body' : no 'objectTypeName' provided for non- null value ou encore : Unable to deserialize content as ObjectValue Ces erreurs se produisent gĂ©nĂ©raleme...

jBPM REST API Serialization Issue – Causes and Solutions

When working with jBPM REST APIs , one of the most common and frustrating problems developers face is serialization errors while starting a process or passing variables . These issues usually appear only at runtime , often in integration or production environments , making them harder to debug. In this article, we’ll understand: Why jBPM REST serialization issues occur Common error messages Practical solutions that actually work in real projects đź”´ Common Error Messages You may encounter errors like: Cannot find serializer for value 'ObjectValue [...]' or Cannot write serialized value for variable 'body' : no 'objectTypeName' provided for non- null value or Unable to deserialize content as ObjectValue These errors usually happen when: Starting a process instance Completing a task Passing complex JSON or Java objects via REST đź§  Root Causes (Very Important) 1️⃣ Passing JSON as a Plain String A very common mistake is sending JSON l...

Comparison in Gateways of jBPM: Inclusive vs Parallel vs Exclusive

Image
When modeling business processes in jBPM , gateways are crucial elements that control how the workflow branches and merges. Choosing the right gateway ensures that your process logic behaves as expected. In this post, we’ll break down the differences between the three most common gateways: Inclusive (OR) , Parallel (AND) , and Exclusive (XOR) gateways. 🔹 Exclusive Gateway (XOR) Behavior: Only one outgoing path is taken, based on conditions. Conditions are evaluated in order; the first one that evaluates to true is followed. You can also configure a default path if no condition matches. Use case: Choosing a meal based on budget or preference (only one meal can be selected). Example condition (MVEL): budget >= 300 && isVegetarian == true 🔹 Parallel Gateway (AND) Behavior: All outgoing paths are taken simultaneously . No conditions are checked—every branch runs in parallel. At the merge point, the parallel gateway waits for all incoming f...