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/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/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.