Handle Errors with Event Subprocesses
Use event subprocesses to handle exceptions that occur in the runtime life cycle of a process and cause it to fail.
Generally, a process can encounter two types of exceptions, namely system and business exceptions.
- System exceptions: Exceptions related to the underlying software or hardware infrastructure of Processes; for example, connectivity loss, database connection failure, or invoke activity failure.
- Business exceptions: Faults related to process applications that occur when there’s a problem with information processing; for example, a stock control and inventory service throwing an error when a stock item is not found.
Using an event subprocess element, you can catch all or specific exceptions and recover the original process flow or supply an alternative, exception-handling flow. You can reuse an event subprocess (or the exception-handling flow) with multiple elements in your process. Also, you can define more than one event subprocess to handle different exceptions within a single process.