Skip to content
Zeebe worker for DMN decision evaluation
Java Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci chore(ci): migrate to cloud CI Jul 15, 2019
src
.gitignore
CODE_OF_CONDUCT.md
Jenkinsfile chore(ci): migrate to cloud CI Jul 15, 2019
LICENSE
README.md
pom.xml

README.md

zeebe-dmn-worker

A Zeebe worker to evaluate DMN decisions (i.e. business rule tasks). It uses the Camunda DMN engine for evaluation and a local directory to read the decisions from.

Usage

Example BPMN with service task:

<bpmn:serviceTask id="decisionTask" name="Eval DMN decision">
  <bpmn:extensionElements>
    <zeebe:taskDefinition type="DMN" />
    <zeebe:taskHeaders>
      <zeebe:header key="decisionRef" value="dish-decision" />
    </zeebe:taskHeaders>
    <zeebe:ioMapping>
      <zeebe:output source="$.result" target="$.decisionResult" />
    </zeebe:ioMapping>
  </bpmn:extensionElements>
</bpmn:serviceTask>
  • the worker is registered for the type DMN
  • required custom headers:
    • decisionRef - the id of the decision to evaluate
  • the result of the evaluation is passed as result variable

Install

  1. Download the JAR file

  2. Execute the JAR file via

    java -jar target/zeebe-dmn-worker-{VERSION}.jar

Configuration

The connection can be changed by setting the environment variables:

  • dmn.repo (default: dmn-repo)
  • zeebe.client.broker.contactPoint (default: 127.0.0.1:26500)

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 code-of-conduct@zeebe.io.

You can’t perform that action at this time.