Skip to main content
Version: Next

Evaluate a decision

Prerequisites

  1. Run the Zeebe Broker with endpoint localhost:26500 (default).
  2. Run the deploy a process example. Deploy demoDecision.dmn instead of demoProcess.bpmn.

EvaluateDecisionCreator.java

Source on GitHub

final EvaluateDecisionResponse decisionEvaluation =
client
.newEvaluateDecisionCommand()
.decisionId(decisionId)
.variables("{\"lightsaberColor\": \"blue\"}")
.send()
.join();

System.out.println("Decision evaluation result: " + decisionEvaluation.getDecisionOutput());