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

non-executable-model doesn't react to bind-only Map property with map access operator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.31.0.Final
    • 7.73.0.Final
    • executable model
    • None
    • 2022 Week 41-43 (from Oct 10), 2022 Week 44-46 (from Oct 31)
    • 2
    • NEW
    • NEW
    • ---
    • ---

    Description

      Issue Description:

      non-executable-model doesn't react to bind-only Map property with map access operator [ ]. For example, a rule like this:

      dialect "mvel"
      rule R when
          $p : Person( name == "Mario", $mapDataA : itemsString["A"] )
      then
          $p.itemsString["B"] = "itemB";
          modify($p) { itemsString = $p.itemsString };
      end
      

      It should react to property "itemsString", so it should cause an infinite loop. (Even though itemsString["A"] is not affected in RHS, property reactivity should work for a property "itemsString")

      However, non-executable-model doesn't react so doesn't cause an infinite loop. On the other hand, executable-model reacts and causes an infinite loop.

      Acceptance Criteria:

      non-executable-model reacts to property "itemsString", so it should cause an infinite loop.

      Out of Scope:

      N/A

      Additional Information:

      N/A

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: