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

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

    XMLWordPrintable

Details

    • False
    • None
    • False
    • CR1
    • +
    • +
    • 2022 Week 44-46 (from Oct 31), 2022 Week 47-49 (from Nov 21)

    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-hmiura Hiroko Miura
              Paolo Bizzarri Paolo Bizzarri
              Paolo Bizzarri Paolo Bizzarri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: