An error-handling framework is provided for business process transactions. The
error-handling framework facilitates coordination of the invocation of exception
and compensation handlers in response to errors. The error-handling framework includes
support for custom ordering of compensation actions, data flow into and out of
compensation actions, and management of the process state visible to compensation actions.