Skip to main content

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());