[jboss-user] [jBPM] - Re: How to handle Exception in JBPM5.4?

Maciej Swiderski do-not-reply at jboss.com
Wed Jul 10 01:30:53 EDT 2013


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

"Re: How to handle Exception in JBPM5.4?"

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

--------------------------------------------------------------
Depending on what exception handling you have in mind I see following options:
* for custom code - add exception handling into your custom work item handler implementations that way you encapsulate the actual logic within "try catch" block so in case of an error you can take appropriate action such as : abort work item, set error process variables, etc
* extension to point 1 could be to always complete work item with error process variable that allows you to control the flow based on that variable and use gateways to move the execution to different branches, like error handling branch
* make use of error events to throw errors that can be caught somewhere lese in the process, that is more for handling business errors rather than low level technical errors

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

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

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/20130710/af814503/attachment.html 


More information about the jboss-user mailing list