Skip to content

LeoWillmann/camunda-zeebe-BPMN4ES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camunda Zeebe BPMN4ES job worker

Camunda version

This repository contains a spring boot demo project following the Camunda getting started guide with additional job workers to monitor custom metrics.

Prerequisites

Launch application

  • Camunda 8 Run needs to be running to launch the application.

Run the main function in DemoApplication.java or execute from the terminal:

mvn spring-boot:run

Customize for own usage

Execution listener

Implement the CustomMetricsEndpointInterface.java and add it to the METRIC_ENDPOINT_MAP in CustomMetricsProcessConstants.java.

Then in the bpmn model provide the correct metric type and JSON data. The function will then retrieve the metric value and return it to the Zeebe engine.

Threaded poller

This starts a new thread on which it will poll from an endpoint while another task is ongoing. A demo implementation is commented in ChargeCreditCardWorker.java.

Self-manage data

Instead of letting Zeebe store and manage the metric data for you (as done in the two steps options above), you can manage it yourself. This means that instead of retrieving any data, the execution listener may send a request to store the metric data under a certain task or other metadata.

About

Zeebe workers in a spring boot demo project to retrieve and work with custom metrics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages