In the Name field, enter a name for the Oracle Mediator. From the Template list, select Asynchronous Interface, as shown in

Getting Started with Oracle Mediator 18-21 Figure 18–19 Subscribe to Events Template Selection in Create Mediator Dialog

4. Click Add.

The Event Chooser dialog appears.

5. To the right of the Event Definition field, click Search.

The SOA Resource Browser dialog appears.

6. Select an event definition file .edl and click OK.

The Event field is populated with the events described in the.edl file that you selected. For more information about creating.edl files, see Chapter 38, Using Business Events and the Event Delivery Network.

7. Select one or more events in the Event field, as shown in

Figure 18–20 , and click OK . Figure 18–20 Event Chooser Dialog 8. Select a level of delivery consistency for the event. ■ one and only one : A global JTA transaction is used for event delivery. If the event call fails, the transaction is rolled back and the call is retried a configurable number of times. ■ guaranteed : A local transaction is used to guarantee delivery. There are no retries upon failure. 18-22 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ immediate : Events are delivered on the same thread and on the same transaction as the caller.

9. In the Run as publisher field, select whether to run the event subscription under

the security of the event publisher. By default, event subscription run under the security of the event publisher. 10. To filter the event, perform any of the following: ■ Double-click the Filter column of the selected event. ■ Select the event and then click the filter icon first icon. The Expression Builder dialog appears.

11. In the Expression field, enter an XPath expression and click OK.

Figure 18–21 shows a sample Expression Builder dialog. Figure 18–21 Business Event Filter The expression you created appears in the Filter column of the Create Mediator dialog.

12. Click OK.

18.4.6.2 What Happens When You Create an Oracle Mediator for an Event Subscription

The Oracle Mediator files that define an event subscription interaction are generated under the specified application and project in the Application Navigator, and the new Oracle Mediator appears in the Mediator Editor in Design view. A WSDL file is also generated with the same name as the Oracle Mediator.