[rules-users] DSL debugging?
Kris Verlaenen
kris.verlaenen at cs.kuleuven.be
Thu Jun 26 08:40:44 EDT 2008
Are you loading your DSL rules using PackageBuilder.addPackageFromDrl(Reader
source, Reader dsl) ?
Kris
----- Original Message -----
From: "Barry Kaplan" <groups1 at memelet.com>
To: <rules-users at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list