I am using Camunda Feel Engine as this
FeelEngine feelEngine =
new FeelEngine(FeelEngine.defaultFunctionProvider(), FeelEngine.defaultValueMapper(), FeelEngine.defaultConfiguration(),
FeelEngine.defaultClock());
FeelEngineApi feelEngineApi = new FeelEngineApi(feelEngine);
final Map<String, Object> variables = Map.of("x", 3, "y", 5);
final EvaluationResult result = feelEngineApi.evaluateExpression("x = 3 and y = 4", variables);
result.result(); // return false as expected
The result.result()
return false
as expected. However, how can I extract the branch where the expression go fail (e.g: y = 4 in this example).
Thanks