Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camunda-community-hub/zeebe-worker-java-template
Minimal template for a Zeebe Java worker
https://github.com/camunda-community-hub/zeebe-worker-java-template
Last synced: 9 days ago
JSON representation
Minimal template for a Zeebe Java worker
- Host: GitHub
- URL: https://github.com/camunda-community-hub/zeebe-worker-java-template
- Owner: camunda-community-hub
- License: apache-2.0
- Created: 2022-01-05T10:06:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:41:45.000Z (11 months ago)
- Last Synced: 2024-07-31T20:32:01.763Z (3 months ago)
- Language: Java
- Size: 18.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-camunda-platform-8 - zeebe-worker-java-template - Minimal template for a [Zeebe](https://github.com/camunda-cloud/zeebe) (Others)
README
[![Community badge: Incubating](https://img.shields.io/badge/Lifecycle-Incubating-blue)](https://github.com/Camunda-Community-Hub/community/blob/main/extension-lifecycle.md#incubating-)
[![Community extension badge](https://img.shields.io/badge/Community%20Extension-An%20open%20source%20community%20maintained%20project-FF4700)](https://github.com/camunda-community-hub/community)
![Compatible with: Camunda Platform 8](https://img.shields.io/badge/Compatible%20with-Camunda%20Platform%208-0072Ce)# Zeebe Worker Java Template
Minimal template for a [Zeebe](https://github.com/camunda-cloud/zeebe)
Java [worker](https://docs.camunda.io/docs/components/concepts/job-workers/). This template adds only the bare minimum
of dependencies.If you want something more convenient, have a look
at [Spring Zeebe](https://github.com/camunda-community-hub/spring-zeebe).## How to Use
The main method is in `Worker.java`. It requires a couple of environment variables to run.
### Connection Setup
#### Connect to Camunda Platform 8 SaaS Cluster
1. Follow the [Getting Started Guide](https://docs.camunda.io/docs/guides/getting-started/) to create an account, a
cluster and client credentials
2. Use the client credentials to fill the following environment variables:
* `ZEEBE_ADDRESS`: Address where your cluster can be reached.
* `ZEEBE_CLIENT_ID` and `ZEEBE_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.
3. Run `Worker`#### Connect to local Installation
For a local installation (without authentication) you only need to set `ZEEBE_ADDRESS`
### Workflow
Either you deploy `process.bpmn` or you design your own process with a service task with the `greet` job type.