Are you loading your DSL rules using PackageBuilder.addPackageFromDrl(Reader
source, Reader dsl) ?
Kris
----- Original Message -----
From: "Barry Kaplan" <groups1(a)memelet.com>
To: <rules-users(a)lists.jboss.org>
Sent: Tuesday, June 24, 2008 7:33 PM
Subject: [rules-users] DSL debugging?
I have a very simple DSL snippet:
PPositionQuantityAllocatedToLegs {position} {rulePriority}=
Integer(intValue < {position}.quantity) from accumulate(
StrategyLeg(priority > {rulePriority}, instrument ==
{position}.instrument,
longShort == {position}.longShort, legQuantity : quantity)
legsQuantity(legQuantity) )
In the IDE it seems to expand correctly without errors. However, at
runtime
I get the below error. How does one decipher such a message?
Caused by: org.drools.rule.InvalidRulePackage: [20,0]: unknown:20:0
mismatched token: [@148,506:513='expander',<7>,20:0];
at org.drools.rule.Package.checkValidity(Package.java:424)
at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:394)
at
com.sig.buyingpower.DroolsOptionStrategyBuyingPowerPositionAggregator.loadRules(DroolsOptionStrategyBuyingPowerPositionAggregator.java:91)
at
com.sig.buyingpower.DroolsOptionStrategyBuyingPowerPositionAggregator.<clinit>(DroolsOptionStrategyBuyingPowerPositionAggregator.java:117)
--
View this message in context:
http://www.nabble.com/DSL-debugging--tp18095970p18095970.html
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users