[jboss-jira] [JBoss JIRA] Resolved: (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 resolved JBRULES-591.
-----------------------------------
Resolution: Done
There was a problem of type conversions when hashing alphanodes by the priorClaims field.
Fixed to support transparent conversion between different types.
$ svn log -r 8412 -v
------------------------------------------------------------------------
r8412 | tirelli | 2006-12-19 14:08:20 -0300 (Tue, 19 Dec 2006) | 1 line
Changed paths:
M /labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
M /labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/insurance_pricing_example.drl
M /labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/CompositeObjectSinkAdapter.java
JBRULES-591: Fixing problem with type conversion in alpha node hashing
------------------------------------------------------------------------
> 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