-
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 accumulate statement with some predefined accumulate functions and uses some field bindings in source-pattern part of the accumulate statement in executable model, not the actually specified parameter but the first bound variable is passed to all the accumulate functions.
For example, in rule (*1), the first bound variable $name in the constraint part of the Car pattern is passed to sum(), which causes ClassCastException like "Steps to Reproduce" field.
Actually specified parameters should be passed to corresponding accumulate functions correctly.
(*1)
package com.example.reproducer dialect "java" rule "rule17a1" when accumulate ( $car : Car( $name : name, $length : length ); $count : count($name), $sum : sum($length), $list : collectList($car) ) then System.out.println("***** Action of rule17a1 -- $count = " + $count + ", $sum = " + $sum + ", $list = " + $list); end