Posts

Showing posts with the label jBPM REST API

Liferay with jBPM Workflow Integration – Complete Guide

Image
  Introduction Enterprises often use Liferay as a powerful portal and content management platform, while jBPM serves as a robust workflow and business process management (BPM) engine. When integrated together, Liferay can act as the front-end portal and jBPM as the workflow engine , enabling approval flows, case management, decision automation, and business orchestration. In this blog, we will explore: Why integrate Liferay with jBPM Architecture overview Integration approaches Sample use cases Step-by-step integration outline Best practices Why Integrate Liferay with jBPM? Liferay handles UI, portals, users, roles, permissions, and content , while jBPM handles process logic, workflows, rules, and decisions . Key Benefits Separation of concerns: UI in Liferay, workflow in jBPM BPMN 2.0 based workflows Flexible REST integration Decision automation using DMN Scalable and loosely coupled architecture High-Level Architecture Flow User performs an action in Liferay (e.g., submits a ...

jBPM REST API Serialization Issue – Causes & Fix

 In jBPM , REST APIs are widely used to start processes, complete tasks, and exchange variables with external systems. A very common production problem is: ❌ jBPM REST API fails due to serialization / deserialization errors (JSON mapping error, empty response, 400/500 error, or variables not persisted correctly) This blog explains the root causes , how to identify the issue , and proven fixes used in real projects. 1️⃣ What Is a Serialization Issue in jBPM REST? Serialization issues occur when: jBPM cannot convert Java objects to JSON or cannot reconstruct Java objects from JSON This typically happens while: Starting a process via REST Completing a human task Passing complex process variables 2️⃣ Most Common Symptoms You may see: HTTP 400 / 500 errors Empty or partial REST responses Exceptions like: Cannot construct instance No serializer found ClassNotFoundException InvalidDefinitionException Process instance starts but variables are missing Task completion fails without clear ...

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