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.
- Process Instance Creation: Easily trigger a process instance using a
processIdwith 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.
- Node.js and npm installed on your machine.
- Camunda Zeebe credentials.
-
Clone the Repository:
git clone https://github.com/marcqw/zeebeapier cd zeebeapier -
Configure Environment:
- Obtain the necessary credentials from the Camunda setup guide.
- Update the
.envfile with these credentials.
-
Install Dependencies:
npm install -
Start the Server:
npm start
<form action="http://localhost:8787/create-process-instance/Process_0a96m0v" method="post">
curl --location 'http://localhost:8787/create-process-instance/Process_0a96m0v' \
--header 'Content-Type: application/json' \
--data '{
"best_presales": "William Marcq"
}'
POST /create-process-instance/:processDefinitionId(optionnal) raw Json body with variables. For forms just add id/name in your form elements.
GET /publish-message/:messageName/:correlationKey(optionnal) raw Json body with variables. For forms just add id/name in your form elements.
