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 ...

Get Mastering jBPM6 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.