[rules-users] Timer Node Period not firing repeatedly (running in active mode using fireUntilhalt())

Boardman, Paul paul.boardman at atosorigin.com
Fri Nov 27 12:00:49 EST 2009


I 'm using Drools flow 5.1m1 and have created a simple Timer test flow.
It has a simple Action node after the timer that Prints out "Hello".

I have set the timer delay to 5000 and the Timer Period to 2000.  What I
expect to happen is I get Hello printed after 5 seconds, then followed
by Hello every 2 seconds until I call halt on the session. However I
just get the first Hello after 5 seconds and that's it.  

I am calling session.fireUntilHalt() in a separate thread and then
starting my process just after this thread has started. (basically
copying the code in section 3.9 Timers from the docs)


Thanks

Paul

_______________________________________________________

Atos Origin and Atos Consulting are trading names used by the Atos Origin group.  The following trading entities are registered in England and Wales:  Atos Origin IT Services UK Limited (registered number 01245534) and Atos Consulting Limited (registered number 04312380).  The registered office for each is at 4 Triton Square, Regents Place, London, NW1 3HG.The VAT No. for each is: GB232327983

This e-mail and the documents attached are confidential and intended solely for the addressee, and may contain confidential or privileged information.  If you receive this e-mail in error, you are not authorised to copy, disclose, use or retain it.  Please notify the sender immediately and delete this email from your systems.   As emails may be intercepted, amended or lost, they are not secure.  Atos Origin therefore can accept no liability for any errors or their content.  Although Atos Origin endeavours to maintain a virus-free network, we do not warrant that this transmission is virus-free and can accept no liability for any damages resulting from any virus transmitted.   The risks are deemed to be accepted by everyone who communicates with Atos Origin by email. 
_______________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091127/80a97cd0/attachment.html 


More information about the rules-users mailing list