]
Mario Fusco resolved DROOLS-661.
--------------------------------
Resolution: Done
Fixed by
Accumulate functions using join variables are not reevaluated
-------------------------------------------------------------
Key: DROOLS-661
URL:
https://issues.jboss.org/browse/DROOLS-661
Project: Drools
Issue Type: Bug
Affects Versions: 6.0.1.Final, 6.2.0.CR2
Reporter: Davide Sottara
Assignee: Mario Fusco
Fix For: 6.2.0.Final
{code}
Tick( $index : tick )
accumulate ( $data : Data(),
$tot : sum( $data.values[ $index ] ) )
{code}
The engine ignores the fact that "$index" in the acc function is a join
variable, so it does not re-evaluate the function on a left update