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
For business Errors I believe use of error eventsis the right approach. Other important component is usage of Compensation. Compensation can be performed by a compensation handler.
As far as I undrstand, that compensation handleris not yet supported by JBPM 5.4 .
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
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.
1 of 1 people found this helpful
yes, both editors should be capable of providing support for exception and compensation events.