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

Rule order counts when inheriting rules

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 5.3.0.Final
    • 5.0.0.M4
    • drools-compiler
    • None
    • Workaround Exists
    • Hide

      Add the inheriting rules after the inherited rule.

      Show
      Add the inheriting rules after the inherited rule.

      When inheriting rules, the order they are written to DRL counts.

      dward noticed this when using Guvnor. There is no way to control the order of the rules in Guvnor, so because of this inheritance doesn't always work.

      This works:
      rule A
      when
      ...
      then
      end

      rule B extends A
      when
      ...
      then
      end

      This doesn't work:
      rule B extends A
      when
      ...
      then
      end

      rule A
      when
      ...
      then
      end

            etirelli@redhat.com Edson Tirelli
            trikkola Toni Rikkola
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: