-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2020 Week 52-03 (from Dec 21)
-
-
Undefined
-
NEW
-
NEW
-
---
-
---
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
- clones
-
RHDM-1571 "and exists" used in source-pattern part of accumulate statement matches multiple times in executable model.
-
- Closed
-