Chapter 5. Handling Exceptions in Practice
In the previous chapter, we explored the theory of handling exceptions in a variety of circumstances and the mechanisms that BPM provides to let us catch, propagate, and handle exceptions. In this chapter, we will put this new knowledge into practice by exploring some practical examples of exception handling:
Using boundary events to implement timeouts so that our processes do not wait forever for an answer that will never come
Using boundary events to implement the "cancel message" use case where we want to stop a process if a second message (the cancel message) is received while it is still working
Using event sub-processes to implement the cancel message use case, and also to look at how to implement an instance data query mechanism
Propagating exceptions between peer processes