Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5579

Unwanted refiring after deserialization of a rule contaning an accumulate with more than one accumulating function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 2020 Week 34-36 (from Aug 17)
    • NEW
    • NEW

      As demonstrated by this test https://github.com/kiegroup/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/common/MarshallerTest.java#L207 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Ā 

       accumulate ( Person ( getName().startsWith(\"M\"), $age : age );
                    $sum : sum( $age ), $max : max( $age )
      
      

      it mistakenly fires once again after deserialization.

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: