Discussion:
[jboss-user] [jBPM] - How to handle Exception in JBPM5.4?
Hari Kumar
2013-06-28 03:27:34 UTC
Permalink
Hari Kumar [https://community.jboss.org/people/hari6025] created the discussion

"How to handle Exception in JBPM5.4?"

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

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

Could some suggest me the exception handling mechanism followed by JBPM5.4?

Thanks in advance,
Harikumar.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-10 05:30:53 UTC
Permalink
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]
Ashish T
2013-07-25 03:51:48 UTC
Permalink
Ashish T [https://community.jboss.org/people/ashpcs] created the discussion

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

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

--------------------------------------------------------------
For business Errors I believe use of error eventsis the right approach.   Other important component is usage of Compensation.

As far as I undrstand that is not yet supported by JBPM 5.4
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-26 08:04:26 UTC
Permalink
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/829929#829929

--------------------------------------------------------------
that is valid statement!

And yes, compensation is not supported in 5.4 it will be supported in 6.0 together with advanced error handling using events. So stay tuned :)
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Ashish T
2013-07-27 10:32:32 UTC
Permalink
Ashish T [https://community.jboss.org/people/ashpcs] created the discussion

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

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

--------------------------------------------------------------
Thats a great news! Does it mean that corrosponding eclipse designer/ web designer will also have those constructs to create business process?

Will try to invest time to go into the JBPM 6 beta. 
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-29 05:51:16 UTC
Permalink
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/830160#830160

--------------------------------------------------------------
yes, both editors should be capable of providing support for exception and compensation events.

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

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

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