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

Rule stops firing when more than 2 rules are added to the same package

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
    • 3.1-m1
    • 3.1-m1
    • drools-core (expert)
    • None

    Description

      [12:37] <mic_hat> tirelli: Good DRL, just a single rule, it works as expected, very simple:

      package org.acme.insurance;

      rule "Pricing bracket_18"

      when
      Driver(age >= 25, age <= 30, priorClaims == "0")
      policy: Policy(type == "COMPREHENSIVE")
      then
      policy.setBasePrice(120);
      System.out.println("Cheapest possible");
      end

      [12:38] <mic_hat> tirelli: this contains that same rule, but it fails to fire:

      #From row number: 18
      rule "Pricing bracket_18"

      when
      Driver(age >= 25, age <= 30, priorClaims == "0")
      policy: Policy(type == "COMPREHENSIVE")
      then
      policy.setBasePrice(120);
      System.out.println("Cheapest possible");
      end

      #From row number: 19
      rule "Pricing bracket_19"

      when
      Driver(age >= 25, age <= 30, priorClaims == "1")
      policy: Policy(type == "COMPREHENSIVE")
      then
      policy.setBasePrice(300);
      end

      #From row number: 20
      rule "Pricing bracket_20"

      when
      Driver(age >= 25, age <= 30, priorClaims == "2")
      policy: Policy(type == "COMPREHENSIVE")
      then
      policy.setBasePrice(590);
      end

      [12:38] <mic_hat> otherwise all identical
      [12:39] <mic_hat> it was fine in 3.0.5
      [12:39] <mic_hat> but not in trunk
      [12:39] <mic_hat> yep, just confirmed again, any ideas why the other rules are causing it to break?
      [12:42] <mic_hat> FYI its in PricingRuleLauncher in drools-decisiontables

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty