All Projects → camunda-community-hub → zeebe-script-worker

camunda-community-hub / zeebe-script-worker

Licence: Apache-2.0 license
Zeebe worker for script evaluation

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to zeebe-script-worker

zeebe-simple-tasklist
Zeebe worker to manage manual/user tasks
Stars: ✭ 50 (+194.12%)
Mutual labels:  zeebe, zeebe-worker
Quintessential-Tasklist-Zeebe
The quintessential Zeebe tasklist for BPMN Human tasks with Drag and Drop Form builder, client and server side validations, and drop in Form Rendering
Stars: ✭ 34 (+100%)
Mutual labels:  zeebe, zeebe-worker
pharext
Distribute your PHP extension as self-installing phar executable
Stars: ✭ 57 (+235.29%)
Mutual labels:  extension
case-extensions
Change any string case to PascalCase/camelCase/kebab-case/snake_case
Stars: ✭ 31 (+82.35%)
Mutual labels:  extension
stack-exchange-notifications
Add-ons for Stack Exchange sites, like: askdifferent, askubuntu, serverfault, stackoverflow and superuser
Stars: ✭ 21 (+23.53%)
Mutual labels:  extension
guillotine
Guillotine is a gnome extension designed for efficiently carrying out executions of commands from a customizable menu. Simply speaking: it is a highly customizable menu that enables you to launch commands and toggle services.
Stars: ✭ 28 (+64.71%)
Mutual labels:  extension
browser-extensions
我的一些 userjs & usercss
Stars: ✭ 63 (+270.59%)
Mutual labels:  extension
siddhi-io-kafka
Extension that can be used to receive events from a Kafka cluster and to publish events to a Kafka cluster
Stars: ✭ 16 (-5.88%)
Mutual labels:  extension
floatly
An extension that adds a floating button for browser quick actions
Stars: ✭ 32 (+88.24%)
Mutual labels:  extension
youtube-audio
Disable videos on Youtube saves resource usage (Youtube becomes audio only)
Stars: ✭ 13 (-23.53%)
Mutual labels:  extension
NotionX
A Browser extension that enhances Notion Web App experience.一个增强 Notion Web端体验的浏览器插件。
Stars: ✭ 94 (+452.94%)
Mutual labels:  extension
code-tours-github
A browser extension to allow to play Code Tours directly from the Browser.
Stars: ✭ 52 (+205.88%)
Mutual labels:  extension
EPPlus.DataExtractor
EPPlus extension that make easier to extract POCO from excel tables
Stars: ✭ 65 (+282.35%)
Mutual labels:  extension
vs-code-kirby-snippets
Kirby Cheatsheet for Visual Studio Code
Stars: ✭ 23 (+35.29%)
Mutual labels:  extension
github-wc-polyfill
Ensure that all GitHub and GitLab scripts required for UXP and SeaMonkey are loaded correctly
Stars: ✭ 87 (+411.76%)
Mutual labels:  extension
netflix-list-exporter
💫‎‎‎‏‏‎ An Extension to export your lists from Netflix to Clipboard area and share it with your friends.
Stars: ✭ 60 (+252.94%)
Mutual labels:  extension
prependers
Easily and cleanly extend third-party code.
Stars: ✭ 24 (+41.18%)
Mutual labels:  extension
SwitchCaseGenerator
An Xcode Source Editor Extension that generates a swift switch case statement based on selected enum cases
Stars: ✭ 63 (+270.59%)
Mutual labels:  extension
ormsgpack
Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
Stars: ✭ 88 (+417.65%)
Mutual labels:  extension
solidus virtual gift card
Virtual gift cards for your Solidus store.
Stars: ✭ 22 (+29.41%)
Mutual labels:  extension

zeebe-script-worker

License

A Zeebe worker to evaluate scripts (i.e. script tasks). Scripts are useful for prototyping, to do (simple) calculations, or creating/modifying variables.

Usage

Example BPMN with service task:

<bpmn:serviceTask id="scripting" name="Evaluate the Script">
  <bpmn:extensionElements>
    <zeebe:taskDefinition type="script" />
    <zeebe:taskHeaders>
      <zeebe:header key="language" value="javascript" />
      <zeebe:header key="script" value="a + b" />
    </zeebe:taskHeaders>
  </bpmn:extensionElements>
</bpmn:serviceTask>
  • the worker is registered for the type script
  • required custom headers:
    • language - the name of the script language
    • script - the script to evaluate
  • available context/variables in script:
    • job (ActivatedJob) - the current job
    • zeebeClient (ZeebeClient) - the client of the worker
  • the result of the evaluation is passed as result variable

Available script languages:

Install

Docker

The docker image for the worker is published on GitHub Packages.

docker pull ghcr.io/camunda-community-hub/zeebe-script-worker:1.0.0
  • configure the connection to the Zeebe broker by setting zeebe.client.broker.contactPoint (default: localhost:26500)

For a local setup, the repository contains a docker-compose file. It starts a Zeebe broker and the worker.

cd docker
docker-compose up

Manual

  1. Download the latest worker JAR (zeebe-script-worker-%{VERSION}.jar )

  2. Start the worker java -jar zeebe-script-worker-{VERSION}.jar

Configuration

The worker is a Spring Boot application that uses the Spring Zeebe Starter. The configuration can be changed via environment variables or an application.yaml file. See also the following resources:

zeebe:
  client:
    worker:
      defaultName: script-worker
      defaultType: script
      threads: 3

    job.timeout: 10000
    broker.contactPoint: 127.0.0.1:26500
    security.plaintext: true

Build from Source

Build with Maven

mvn clean install

Code of Conduct

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].