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.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    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)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty