-
Bug
-
Resolution: Done
-
Major
-
7.33.0.Final
-
None
-
2020 Week 07-09 (from Feb 10), 2020 Week 10-12 (from Mar 2)
-
4
-
NEW
-
NEW
When you have a rule like:
when $p : Person(!(money > 20))
, executable model fails with an error:
bad operand types for binary operator '>' first type: java.math.BigDecimal second type: int
This is because the generated code doesn't use EvaluationUtil.
org.drools.model.Rule rule = D.rule("R").build(D.pattern(var_$p).expr("CE47D630E9C0B4A2A149ED40CEC3E3B0", (org.drools.modelcompiler.domain.Person _this) -> !(_this.getMoney() > 20), D.reactOn("money")),