Guidelines for Configuring Mediator for Handling Business Faults

Configuring Oracle AIA Processes for Error Handling and Trace Logging 24-11

24.4.3 Guidelines for Configuring Mediator for Handling Business Faults

Oracle Mediator provides fault policy-based error handling for business faults. However, fault policies are applicable to parallel routing rules only. For sequential routing rules, the fault goes back to the caller that has invoked the mediator and it is the responsibility of the caller to handle the fault. We recommend using only sequential routing rules. When a service invoked by the mediator throws a business fault, this fault needs to be propagated up to the service that has invoked the mediator. This section discusses how to configure the mediator to handle business exceptions returned by the services invoked by the mediator. Here are some points to consider: ■ When the mediator invokes a service, the invoked service can throw any of the business faults that are defined in its WSDL. ■ The fault that is thrown by the invoked service is propagated back to the mediator. To configure the mediator to handle business exceptions returned by the services invoked by the mediator: 1. Open the mediator in design-mode using Oracle JDeveloper. 2. Using the Static Routing panel, assign the inbound fault reaching the mediator to the outbound fault, which is now propagated by the mediator to the service that invoked it, as shown in Figure 24–1 . Figure 24–1 Assignment of the Faults in the Mediator 3. As shown in the preceding diagram, assign the inbound fault from the target services WSDL operation to the outbound fault that is propagated by the mediator to its invoker service. For more information about how to assign faults, see How to Handle Faults in Oracle Fusion Middleware Developers Guide for Oracle SOA Suite. 24.5 Implementing Error Handling and Recovery for the Asynchronous Message Exchange Pattern to Ensure Guaranteed Message Delivery This section includes the following topics: ■ Section 24.5.1, Overview ■ Section 24.5.2, Configuring Milestones 24-12 Developers Guide for Oracle Application Integration Architecture Foundation Pack ■ Section 24.5.3, Configuring Services Between Milestones ■ Section 24.5.4, Guidelines for BPEL Catch and Catch-All Blocks ■ Section 24.5.5, Guidelines for Defining Fault Policies ■ Section 24.5.6, Configuring Fault Policies to Not Issue Rollback Messages ■ Section 24.5.7, Using the Message Resubmission Utility API

24.5.1 Overview