Skip to content

marcqw/zeebeapier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeebeapier

This project provides a gateway to simplify communication between a client application/forms/direct link... and Zeebe. It allows you to trigger process instances and publish messages with correlation using simple HTTP POST requests.

App Screenshot

Features

  • Process Instance Creation: Easily trigger a process instance using a processId with or without variables.
  • Message Publication: Publish messages with a correlation key, with or without variables.
  • Seamless Integration: Connect simple HTML forms to Camunda with minimal setup.
  • Environment Configuration: Minimal & easy configuration. Just check Camunda's setup guide.

Get Started

Prerequisites

  • Node.js and npm installed on your machine.
  • Camunda Zeebe credentials.

Installation

  1. Clone the Repository:

    git clone https://github.com/marcqw/zeebeapier
    cd zeebeapier
    
  2. Configure Environment:

    • Obtain the necessary credentials from the Camunda setup guide.
    • Update the .env file with these credentials.
  3. Install Dependencies:

    npm install
    
  4. Start the Server:

    npm start
    

Usage

From an HTML form

   <form action="http://localhost:8787/create-process-instance/Process_0a96m0v" method="post">

With an HTTP request

curl --location 'http://localhost:8787/create-process-instance/Process_0a96m0v' \
--header 'Content-Type: application/json' \
--data '{
    "best_presales": "William Marcq"
}'

API Reference

Create a process instance

  POST /create-process-instance/:processDefinitionId

(optionnal) raw Json body with variables. For forms just add id/name in your form elements.

Get item

  GET /publish-message/:messageName/:correlationKey

(optionnal) raw Json body with variables. For forms just add id/name in your form elements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors