How to Specify Sequential or Parallel Execution How to Configure Response Messages

19-12 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite AsyncEchoMediator2 , or from either one of them. The exact behavior is random and unpredictable. Figure 19–9 Sample Oracle Mediator Handling Multiple Callback

19.2.2.6 How to Handle Faults

If you create a new routing rule in which the target service operation has one or more faults, you still see a single fault routing section in the Mediator Editor. If the source Oracle Mediator service component supports one or more faults, then the fault is routed back to the caller by default. You can choose the source and target fault names to be routed. You can also use the service browser to route the fault to another target. To define an additional fault routing: The following steps are performed in the Routing Rules section of the Mediator Editor.

1. In the Faults section, click the Add another fault routing button shown in

Figure 19–10 . Creating Oracle Mediator Routing Rules 19-13 Figure 19–10 Adding a Second Fault Another fault section appears in the routing rule box.

2. Configure the target service, transformations, and assign values for the new fault.

Figure 19–11 shows a second fault being routed to a file adapter service. Figure 19–11 Second Fault Added to Routing Rules 19-14 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite To remove a fault routing section: The following steps are performed in the Routing Rules section of the Mediator Editor. ■ Highlight the fault routing you want to remove by clicking in the target service field, and then click Delete the selected fault routing, as shown in Figure 19–12 . Figure 19–12 Deleting a Fault Routing

19.2.2.7 How to Specify an Expression for Filtering Messages

The filter expression routing rule lets you filter messages based on their payload. If the filter expression for a given message instance evaluates to true, the message is delivered to the target service or event specified within the routing rule. For example, you route your data to customers in two different countries, such as US and Canada, but you only want notices regarding the MOBILE product line to be sent to US customers and the LANDLINE product line to customers in Canada. To implement this routing, you must define a routing rule for each component and operation pair that sends messages to the target customers. In addition, you specify filter expressions for the routing rules that send messages to the customers in the US or Canada. You can also define filter expression message properties or message headers. Note: You can route the same fault to multiple targets using different transformations.