riccardomerolla / zeebe-worker-scala-template

Minimal template for a Zeebe Scala worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Community badge: Incubating Community extension badge

Zeebe Worker Scala Template

Minimal template for a Zeebe Scala worker. This template adds only the bare minimum of dependencies.

If you want something more convenient, have a look at Spring Zeebe.

How to Use

The main method is in Worker.scala. It requires a couple of environment variables to run.

Connection Setup

Connect to Cluster Camunda Cloud

  1. Follow the Getting Started Guid 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.

About

Minimal template for a Zeebe Scala worker

License:Apache License 2.0


Languages

Language:Scala 100.0%