Details
-
Bug
-
Resolution: Done
-
Major
-
3.1-m1
-
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