GithubHelp home page GithubHelp logo

camunda-zeebe-spring-boot-rest-api's Introduction

Camunda Zeebe Spring Boot Project

This project demonstrates how to integrate Camunda Zeebe with Spring Boot to deploy processes, create process instances, get active tasks, and complete tasks via REST endpoints.

Setup

  1. Download Zeebe Broker: Download the latest version of Zeebe Broker from here.

  2. Setup Zeebe Broker: Follow the installation instructions provided in the Zeebe documentation to set up and start the Zeebe Broker.

  3. Clone Camunda Docker Compose: Clone the Camunda Docker Compose repository from here.

  4. Start Docker Compose: Navigate to the cloned directory and start the Docker Compose setup using the following command:

docker compose up

Usage

  1. Run Spring Boot Application: Run the Spring Boot application, which contains REST endpoints to interact with Camunda Zeebe.

  2. Deploy Process: Use the appropriate REST endpoint to deploy a BPMN process to Zeebe.

  3. Start Process Instance: Send a POST request to start a process instance using the deployed process.

  4. Get Active Tasks: Retrieve active tasks for a process instance by making a GET request to the corresponding endpoint.

  5. Complete Task: Complete a task for a process instance by sending a POST request to the completion endpoint with the task ID and any required data.

REST Endpoints

Process Controller

  • Deploy Process:

  • Endpoint: /process/deploy

  • Method: POST

  • Description: Deploy a BPMN process to Zeebe.

  • Request Parameters: processName

  • Start Process Instance by Key:

  • Endpoint: /process/start-by-key

  • Method: POST

  • Description: Start a new process instance using the process definition key.

  • Request Parameters: processDefinitionKey

  • Request Body: Map containing process variables.

  • Start Process Instance by ID:

  • Endpoint: /process/start

  • Method: POST

  • Description: Start a new process instance using the process definition ID.

  • Request Parameters: processDefinitionId

  • Request Body: Map containing process variables.

Task Controller

  • Complete Task:

  • Endpoint: /task/complete

  • Method: POST

  • Description: Complete a task for a specific process instance.

  • Request Parameters: taskKey

  • Request Body: Map containing input process variables.

  • Get Active Tasks:

  • Endpoint: /tasks/active

  • Method: GET

  • Description: Retrieve active tasks for all process instances.

camunda-zeebe-spring-boot-rest-api's People

Contributors

sinugaud avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.