-
Bug
-
Resolution: Done
-
Major
-
7.9.0.GA
-
RHDM 7.9.0.
-
False
-
False
-
Release Notes
-
-
-
-
-
-
CR1
-
+
-
Undefined
-
-
-
2020 Week 49-51 (from Nov 30)
Compiling a rule like (*1) which is described in MVEL dialect and contains the enhanced "for" (foreach) statement in the action part with executable rule models enabled, compilation error like (*2) occurs at the enhanced "for" statement.
(*1)
package com.example.reproducer
import java.util.ArrayList
import com.example.reproducer.Bus
dialect "mvel"
rule "bus1"
when
$buses : ArrayList() from collect ( Bus() )
then
for (Bus : $buses ) {
System.out.println("bus: " + bus);
}
end
(*2)
[ERROR] Unable to build KieBaseModel:rules
CompilationProblemErrorResult: org.drools.mvelcompiler.MvelCompilerException: Type check of for (Bus bus : $buses) {
System.out.println("bus: " + bus);
} failed.
- is cloned by
-
DROOLS-5887 The enhanced "for" (foreach) statement causes compilation error in executable models.
-
- Closed
-