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

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.9.0.GA
    • 7.8.0.GA
    • BRE
    • Release Notes
    • CR1
    • +
    • 2020 Week 34-36 (from Aug 17)

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved: