Exception Handling

BPEL4WS provides a set of facilities to recover from errors while executing a process or handling exceptions. BPEL4WS makes good use of the exception handling capabilities already built into WSDL. As we described above, you can leverage the <throw> and <catch> constructs. What's more, you can leverage the notion of compensation, which allows the process designer to implement compensating actions for particular irreversible actions. This is supported recursively in BPEL4WS using the notion of scope. Scope is essentially a unit of work for compensation. In other words, BPEL4WS supports transactional-type characteristics.

Get Next Generation Application Integration: From Simple Information to Web Services 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.