-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2020 Week 49-51 (from Nov 30)
-
-
Undefined
-
NEW
-
NEW
-
---
-
---
Compiling a rule like (*1) which is described in MVEL dialect and uses an expression like BigDecimal_type_property = BigDecimal_type_property.divide(BigDecimal_value), for example (*1-1), with executable rule models enabled, an error like (*2) occurs.
This issue occurs in the case of using the other basic operation add, subtract and multiply as well as divide.
(*1)
package com.example.reproducer import com.example.reproducer.Bus import java.math.BigDecimal dialect "mvel" rule "bus3d" when $bus : Bus() then $bus.weight = $bus.weight.divide(BigDecimal.valueOf(1000)); ..... (*1-1) System.out.println("***** " + $bus + ", weight = " + $bus.weight); end
$bus.weight is a BigDecimal type property.
(*2)
[ERROR] Unable to build KieBaseModel:rules CompilationProblemErrorResult: org.drools.mvelcompiler.MvelCompilerException: RHS doesn't have a type
- clones
-
RHDM-1521 Expression like BigDecimal_type_property = BigDecimal_type_property.divide(BigDecimal_value) causes a build failure in executable model.
- Closed