Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
-
2021 Week 31-33 (from Aug 2)
-
-
Undefined
-
NEW
-
NEW
Description
When having a rule like this:
rule "Rule that breaks ExecutableModel" @filename("rules.drl") ruleflow-group "RFG-1" salience 5 no-loop true when $list: List() $cwvs: ( List(size > 0) from collect ( ClassWithValue(value == null) ) or List(size > 0) from collect ( ClassWithValue(value != null) ) ) then $list.addAll($cwvs); end
The executable model will try to do the constraint checks which are supposed to happen in the pattern for the collect on the type of the or expression - list in this case.
The old model does not fail here.