Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3691

Property Reactive: using nested accessor in modify() seems to prevent the correct re-evaluation of the rules.

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Do not use nested accessors. For example, this rule:

      when
      $s: Something()
      $o: Other()
      then
      modify ($o)

      { setA($s.getA()) }

      end

      Should be written like this:

      when
      $s: Something($a: a)
      $o: Other()
      then
      modify ($o)

      { setA($a) }

      end

      Show
      Do not use nested accessors. For example, this rule: when $s: Something() $o: Other() then modify ($o) { setA($s.getA()) } end Should be written like this: when $s: Something($a: a) $o: Other() then modify ($o) { setA($a) } end

    Description

      The usage of nested accessors in modify() seems to prevent rules to be re-evaluated, or the re-evaluation result is not the expected one.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            esteban.aliverti@gmail.com Esteban Aliverti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: