Also, I get these below errors, which seems to indicate that something is
very wrong with rule parser. Like it cannot parse anything because of the
expander?
[25] Unable to expand: Strategy strategy = new
Strategy(drools.getRule().getName(), 1,
[26] Unable to expand: new StrategyLeg(LongShort.LONG,
availableQuantity, equity));
[27] Unable to expand: insertLogical(strategy);
[6] Unable to expand: equity : EquityInstrument()[8] Unable to expand:
position : Position([9] Unable to expand: instrument == equity,[10] Unable
to expand: longShort == LongShort.SHORT,[11] Unable to expand: quantity >
0)[13] Unable to expand: legsQuantity : Integer(intValue <
position.quantity)[14] Unable to expand: from accumulate( StrategyLeg([15]
Unable to expand: priority > 1,[16] Unable to expand: instrument ==
equity,[17] Unable to expand: longShort == LongShort.SHORT,[18] Unable to
expand: legQuantity : quantity )[19] Unable to expand:
legsQuantity(legQuantity) )[22] Unable to expand: int
availableQuantity = position.getQuantity() - legsQuantity;
[23] Unable to expand: Strategy strategy = new
Strategy(drools.getRule().getName(), 1,
[24] Unable to expand: new StrategyLeg(LongShort.SHORT,
availableQuantity, equity));
[25] Unable to expand: insertLogical(strategy);
--
View this message in context:
http://www.nabble.com/DSL-debugging--tp18095970p18096038.html
Sent from the drools - user mailing list archive at
Nabble.com.