[jboss-user] [jBPM] - Timer triggered more than it should after an exception (infinite loop some times).

Miloud Haimoune do-not-reply at jboss.com
Mon May 21 08:21:48 EDT 2012


Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion

"Timer triggered more than it should after an exception (infinite loop some times)."

To view the discussion, visit: https://community.jboss.org/message/736786#736786

--------------------------------------------------------------
Hi All,

I'm having an infinite loop in my business process in my project, so I reduced my process to a sample one and reproduced the bug. I'm using jbpm5.2 seam and jboss 5.1.

the process:
  https://community.jboss.org/servlet/JiveServlet/showImage/2-736786-18600/Screen+Shot+2012-05-21+at+12.10.14.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-736786-18600/450-90/Screen+Shot+2012-05-21+at+12.10.14.png 


In an ad-hoc model, I start the process and a timer is triggered each 60s to check some rules. I have a variable "iteration" which is incremented in the a script action (each time the triggered), after the third  iteration a throw an exception with I catch in my processManager.

The rule where the exception is thrown

  https://community.jboss.org/servlet/JiveServlet/showImage/2-736786-18601/Screen+Shot+2012-05-21+at+12.10.50.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-736786-18601/450-106/Screen+Shot+2012-05-21+at+12.10.50.png 
To reproduce the bug I start tow process instance, let the exception occurred and start a new process instance than the timer is triggered 3, 4 5 times in a second and it should happen just ones each 60s. Some times this exception produces an infinite loop (triggering the timer).


I joined the process definition, the rule file and processmanager.ava (inspired from the jbpm console code).

My question :
Is it a problem in my code or a bug in jbpm, and if there is a way to workaround.


If you need any further information, please let me know.

thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/736786#736786]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120521/0b3221e7/attachment.html 


More information about the jboss-user mailing list