Discussion:
[jboss-user] [jBPM] - JBPM5 Error Handling
Raghavendra M
2013-04-26 12:02:54 UTC
Permalink
Raghavendra M [https://community.jboss.org/people/ragramaiah] created the discussion

"JBPM5 Error Handling"

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

--------------------------------------------------------------
Hello,
How to handle an exception if it occurs in any of the step . For eg. If I have 3 steps, if exception occurs in first step, the execution flow should end and error should be logged.
But I dont know how to achieve this.Any help would be greatly appreciated.

Thansks,
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Demian Calcaprina
2013-04-26 14:23:50 UTC
Permalink
Demian Calcaprina [https://community.jboss.org/people/calca] created the discussion

"Re: JBPM5 Error Handling"

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

--------------------------------------------------------------
Well, I think there are two types of errors.
Business errors should be handled at process level, using Error Events in should BPMN process.
Technical exception are different. If you are using persistence, and and exception is thrown by one node, it will roll it back until the last safe state, so the process will not be corrupted. You can catch the exception in the code calling the process (start proess, complete task), and make your own logging and you could also retry. In this case, it can be helpful to use a JMS layer to give orders to the process. As JMS can do the retry, the persistence, etc.

My 2 cents!

Demian
--------------------------------------------------------------

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

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