Business Faults Introduction to Categories of BPEL Faults

Using Fault Handling in a BPEL Process 11-7 ■ The fault policy file fault-policies.xml and fault policy bindings file fault-bindings.xml are placed in either of the following locations: – In the same directory as the composite.xml file of the SOA composite application. – In a different location that is specified with two properties that you add to the composite.xml file. This option is useful if a fault policy must be used by multiple SOA composite applications. This option overrides any fault policy files that are included in the same directory as the composite.xml file. Example 11–3 provides details about these two properties. In this example, the fault policy files are placed into the SOA Metadata Service MDS shared area. Example 11–3 Fault Policies used by Multiple SOA Composite Applications property name=oracle.composite.faultPolicyFileoramds:appsfaultpolicyfiles fault-policies.xml property property name=oracle.composite.faultBindingFileoramds:appsfaultpolicyfiles fault-bindings.xml property See Chapter 21, Using Oracle Mediator Error Handling for details about Oracle Mediator fault handling capabilities.

11.4.1 How to Design a Fault Policy

This section describes how to design a fault policy.

11.4.1.1 Understanding How Fault Policy Binding Resolution Works

A fault policy bindings file associates the policies defined in a fault policy file with the SOA composite application or the component service component or reference binding component. The framework attempts to identify a fault policy binding in the following order: ■ Reference binding component defined in the composite.xml file. ■ BPEL process or Oracle Mediator service component defined in the composite.xml file. ■ SOA composite application defined in the composite.xml file. Note: A fault policy configured with the fault management framework overrides any fault handling defined in catch activities of scope activities in the BPEL process. The fault management framework can be configured to rethrow the fault handling back to the catch activities. Note: The Facades API enables you to programmatically perform the abort, retry with a success action, continue, rethrow, and replay recovery options. For information, see Oracle Fusion Middleware Infrastructure Management Java API Reference for Oracle SOA Suite.