Minimal template for a Zeebe Java worker. This template adds only the bare minimum of dependencies.
If you want something more convenient, have a look at Spring Zeebe.
The main method is in Worker.java
. It requires a couple of environment variables to run.
- Follow the Getting Started Guide to create an account, a cluster and client credentials
- Use the client credentials to fill the following environment variables:
ZEEBE_ADDRESS
: Address where your cluster can be reached.ZEEBE_CLIENT_ID
andZEEBE_CLIENT_SECRET
: Credentials to request a new access token.ZEEBE_AUTHORIZATION_SERVER_URL
: A new token can be requested at this address, using the credentials.
- Run
Worker
For a local installation (without authentication) you only need to set ZEEBE_ADDRESS
Either you deploy process.bpmn
or you design your own process with a service task with the greet
job type.