Posts

Showing posts with the label HTTP Methods

REST Component in jBPM – Complete Guide with Examples

 Modern business processes often require calling external services—microservices, third-party APIs, or internal REST endpoints. In jBPM , this is made possible using the REST Work Item Handler (REST WIH) , commonly called the REST Component . In this article, you’ll learn: What the REST component is How to configure it How to call REST APIs (GET/POST/PUT/PATCH) How to pass headers, parameters, and body How to store and use responses in the workflow Best practices and optional advanced tips 🔹 What Is the REST Component in jBPM? The REST Work Item Handler allows your BPMN process to make external REST API calls. A REST Work Item can: ✔ Call any REST endpoint ✔ Support GET, POST, PUT, DELETE, PATCH ✔ Pass JSON/XML bodies ✔ Attach HTTP headers ✔ Capture response codes and response bodies ✔ Store the response into process variables It is mostly used inside a Service Task . đź”§ Configuring REST Work Item Handler Add the REST WIH dependency in your pom...

REST API Tutorial

  🚀 Introduction REST APIs allow different applications to communicate with each other. Each API request uses a specific HTTP Method based on the action: Method Action Meaning GET Read Fetch data from server POST Create Add new data PUT Update Replace existing data PATCH Modify Modify part of existing data DELETE Remove Delete data We will use live working APIs from: 👉 https://restful-api.dev/ 📥 1. GET — Retrieve / Read Data ➤ Example 1: Fetch multiple items using IDs đź”— API URL: https://api.restful-api.dev/objects? id =4& id =6& id =10 🟦 cURL Example (GET) curl --location 'https://api.restful-api.dev/objects?id=4&id=6&id=10' \ --data '' 📌 Example Response: [      {          "id" :   "4" ,          "name" :   "Apple iPhone 11, 64GB" ,          "data" :   {     ...