Fault tolerance
Fault tolerance indicates the ability to operate in a predictive manner, when one or more failures happen in the system. In Java-based applications, these faults are managed using exception handling mechanisms. jBPM is no exception; it uses the exception handling approach to be fault-tolerant.
Exception handling in process definitions
We can specify the occurrence and the handling mechanisms that happen in a business process using BPMN elements, as follows:
- Error events can be used to specify the occurrence of an unexpected situation. Compared to Java programming, this is similar to throwing an error.
- Compensation can be used to specify what to do when an error has occurred; this is similar to the catch operation construct in a Java program.
The advantage of using exception handling at a process level is that the exception scenarios are visible in the process, thus making the monitoring and analysis of these scenarios easier, thereby contributing to continuous improvements of...