Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1434

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
    • 7.9.0.GA
    • 7.8.0.GA
    • BRE
    • Release Notes
    • CR1
    • +
    • 2020 Week 34-36 (from Aug 17)

      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
            rhn-support-mputz Martin Weiler (Inactive)
            Daniel Rosa Daniel Rosa
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: