-
Bug
-
Resolution: Done
-
Major
-
7.1.0.GA, 7.9.0.GA
-
This issue occurs on releases from RHDM 7.1.0 to 7.9.1.
-
False
-
False
-
Release Notes
-
-
-
-
-
-
CR1
-
+
-
Undefined
-
-
-
2021 Week 07-09 (from Feb 15)
When executing a rule like (*1) that uses and exists in source-pattern part of accumulate statement like (*1-1) in executable model, the sub-pattern given by and exists matches multiple times. For example in rule (*1), we insert 1 Car object and 3 InspectionResult objects with the same value of number property as the Car object, the source-pattern in the accumulate statement matches 3 times. In this case, it should match only once.
(*1)
package com.example.reproducer import java.util.List dialect "java" rule "rule16a2" when $list : List() from accumulate ( $car : Car( $number : number ) and exists InspectionResult( number == $number ); // ..... (*1-1) collectList($car) ) then System.out.println("***** Action of rule16a2 -- $list = " + $list); end
- is cloned by
-
DROOLS-5965 "and exists" used in source-pattern part of accumulate statement matches multiple times in executable model.
-
- Closed
-