[jboss-jira] [JBoss JIRA] Closed: (JBRULES-591) Rule stops firing when more than 2 rules are added to the same package

Edson Tirelli (JIRA) jira-events at jboss.com
Tue Dec 19 12:11:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBRULES-591?page=all ]

Edson Tirelli closed JBRULES-591.
---------------------------------


> Rule stops firing when more than 2 rules are added to the same package
> ----------------------------------------------------------------------
>
>                 Key: JBRULES-591
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-591
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Reteoo
>    Affects Versions: 3.1-m1
>            Reporter: Edson Tirelli
>         Assigned To: Edson Tirelli
>             Fix For: 3.1-m1
>
>
> [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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list