[rules-users] DSL debugging?

Barry Kaplan groups1 at memelet.com
Tue Jun 24 13:33:30 EDT 2008


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.




More information about the rules-users mailing list