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

Maciej Swiderski do-not-reply at jboss.com
Fri Jun 1 12:57:38 EDT 2012


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

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

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

--------------------------------------------------------------
What I think is happening is:
- timer works according to expectations - you can observe that by looking at number of step 1 node executions
- every trigger of business rule task register listeners to be notified on rule execution
- in case rule throws an exception it is not successfully executed meaning that listener is not signaled
- as soon as the other process instance is started and goes into business rule task that is successfully executed with trigger all event listeners as they are matched based on ruleflow group name

So depending on number of business rule task instances that were created with failing rule, you should see that number + 1 triggers of step 2 node.

IMHO you should never thrown exception from the rule as that causes not predictable results.

HTH
--------------------------------------------------------------

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

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/20120601/276869d5/attachment.html 


More information about the jboss-user mailing list