]
Mario Fusco resolved DROOLS-5579.
---------------------------------
Resolution: Done
Fixed by
Unwanted refiring after deserialization of a rule contaning an
accumulate with more than one accumulating function
------------------------------------------------------------------------------------------------------------------
Key: DROOLS-5579
URL:
https://issues.redhat.com/browse/DROOLS-5579
Project: Drools
Issue Type: Bug
Reporter: Mario Fusco
Assignee: Mario Fusco
Priority: Major
As demonstrated by this test
[
https://github.com/kiegroup/drools/blob/master/drools-compiler/src/test/j...]
an accumulate rule doesn't refire after deserialization. However if the accumulate
contains more than one accumulating function, e.g. the accumulate in that test is
rewritten asĀ
{code:java}
accumulate ( Person ( getName().startsWith(\"M\"), $age : age );
$sum : sum( $age ), $max : max( $age )
{code}
it mistakenly fires once again after deserialization.