Is there a way to identify which part of a SpEL expression trigger a rule ?
For example :
a < 10 || a > 20
I want to know if the rule is fired because a < 10
or a > 20
For example :
ExpressionParser parser = new SpelExpressionParser();
Expression expression = parser.parseExpression(rule.getExpression());
return Boolean.TRUE.equals(expression.getValue(evaluationContext, Boolean.class));
thanks to this I can know if the whole expression is true or false, in addition to this I would like to know more precisely that it has triggered the rule