Skip to content

Commit

Permalink
Graalvm (#332)
Browse files Browse the repository at this point in the history
* feat(JS): evaluate JS on GraalVM

* fixed

---------

Co-authored-by: Philipp Ossler <[email protected]>
  • Loading branch information
jonathanlukas and saig0 authored Oct 24, 2023
1 parent 5086aba commit 687da96
Show file tree
Hide file tree
Showing 14 changed files with 676 additions and 329 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

[![Compatible with: Camunda Platform 8](https://img.shields.io/badge/Compatible%20with-Camunda%20Platform%208-0072Ce)](https://github.com/camunda-community-hub/community/blob/main/extension-lifecycle.md#compatiblilty)

Available script languages:
* [javascript](https://www.graalvm.org/) (GraalVM JS)
* [groovy](http://groovy-lang.org/)
* [feel](https://github.com/camunda/feel-scala)

_This is a community project meant for playing around with Zeebe. It is not officially supported by the Zeebe Team (i.e. no gurantees). Everybody is invited to contribute!_
A Zeebe worker to evaluate scripts (i.e. script tasks). Scripts are useful for prototyping, to do (simple) calculations, or creating/modifying variables.

## Usage
Expand All @@ -31,10 +37,10 @@ Example BPMN with service task:
* 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
* the result of the evaluation is passed as `result` variable

Available script languages:
* javascript (Oracle Nashorn)
* javascript (graalvm)
* [groovy](http://groovy-lang.org/)
* [feel](https://github.com/camunda/feel-scala)
* [mustache](http://mustache.github.io/mustache.5.html)
Expand All @@ -49,9 +55,9 @@ The docker image for the worker is published on [GitHub Packages](https://github
```
docker pull ghcr.io/camunda-community-hub/zeebe-script-worker:1.2.0
```
* configure the connection to the Zeebe broker by setting `zeebe.client.broker.contactPoint` (default: `localhost:26500`)
* 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](docker/docker-compose.yml). It starts a Zeebe broker and the worker.
For a local setup, the repository contains a [docker-compose file](docker/docker-compose.yml). It starts a Zeebe broker and the worker.

```
cd docker
Expand Down
Loading

0 comments on commit 687da96

Please sign in to comment.