Business processes, particularly long-running processes that contain human interactions, often have to react to events. For example, let's imagine that a business process needs to provide a way to cancel the process while it is running. Or that we want to limit the maximum time in which a business process should finish. Or that a business process should start or stop on a specific date and time. All this can be achieved with events and Event Driven Architecture (EDA).
In this chapter, we will take a closer look at the events and event handlers in BPEL processes. We will do the following: