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

Two opposing rules get fired

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.MR2
    • 3.1-m1
    • None
    • None

    Description

      When using the following two rules with an empty working memory both rules get fired:

      ===================================
      rule rule1
      when
      not Person(gender == Consts.Unknown)
      then
      System.out.println("rule1");
      end
      rule rule2
      when
      exists Person(gender == Consts.Unknown)
      then
      System.out.println("rule2");
      end
      ===================================

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            serel_jira erel sagi (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty