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

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.8.0.GA
    • Fix Version/s: 7.9.0.GA
    • Component/s: BRE
    • Labels:
    • Target Release:
    • Fix Build:
      CR1
    • Sprint:
      2020 Week 34-36 (from Aug 17)
    • QE Test Coverage:
      +

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  mputz Martin Weiler
                  Tester:
                  Daniel Rosa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: