Im confused about why my rule isnt firing.
Im using Jboss SwitchYard.
This is the only difference from the switchyard perspective:
<rules:action name="sendData" type="FIRE_ALL_RULES"
entryPoint="AccountData"/>
And when I use EXECUTE the rule fires.
When I use FIRE_ALL_RULES, it never gets activated.
This is my rule:
| rule "OpenTrade-Open"
2. | agenda-group "OpenTrade"
3. | no-loop true
4. | dialect "mvel"
5. | when
6. | Tick( ) over window:time (1m) from entry-point "AccountData"
7. | then
8. | TradeOrder newTrade = new TradeOrder();
9. | newTrade.setSymbol( "EURUSD" );
10. | newTrade.setVolume( 1 );
11. | newTrade.setMt4username( "4002642" );
12. | newTrade.setStatus( OrderStatus.OPENING );
13. | newTrade.setOperation( "OP_BUY" );
14. | newTrade.setComment( "From Magick.Rhythm" );
15. | insert( newTrade );
16. | modifiedOrderList.add(newTrade);
17. | end
--
View this message in context:
http://drools.46999.n3.nabble.com/Switchyard-RuleService-Rule-doesnt-fire...
Sent from the Drools: User forum mailing list archive at
Nabble.com.