Evaluate a decision
Prerequisites
- Run the Zeebe Broker with endpoint
localhost:26500
(default). - Run the deploy a process example. Deploy
demoDecision.dmn
instead ofdemoProcess.bpmn
.
EvaluateDecisionCreator.java
final EvaluateDecisionResponse decisionEvaluation =
client
.newEvaluateDecisionCommand()
.decisionId(decisionId)
.variables("{\"lightsaberColor\": \"blue\"}")
.send()
.join();
System.out.println("Decision evaluation result: " + decisionEvaluation.getDecisionOutput());