Configuring Oracle B2B Attributes

32-2 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite from Oracle Enterprise Manager Fusion Middleware Control. Service components are only subscribed to from Oracle JDeveloper. When a business event is published, the entity subscribed to that event receives it. To subscribe to business events: 1. Access this page through one of the following options: The Events page displays the following details: ■ A utility for searching for a specific business event by specifying a full or partial name and clicking the Search icon. Click the Help icon for details. ■ Business events, including the namespace used, event name, number of subscriptions to each event, and number of failed event deliveries. Business events are contained within their namespace.

2. Select a specific event in the Namespaces and Events section.

3. Click Show Event Definition.

The event definition language EDL file for the selected event appears. The business event is defined using EDL. EDL is a schema used to build business event definitions. In this example, two business events named OrderReceivedEvent and ProductSoldAlert appear in the event definition. The namespace orders and associated schema file ProductOrder.xsd are referenced. From the SOA Infrastructure Menu... From the SOA Folder in the Navigator... Select Business Events. Right-click soa-infra and select Business Events . Managing Business Events 32-3

4. Click OK to close the dialog.

5. Click Subscribe to subscribe a database agent to the event selected in the

Namespaces and Events table. The Create Database Subscription to an Event dialog appears. You create an agent to listen for and subscribe to appropriate events when they are published. 6. Enter the following values. An asterisk indicates a required field. Note: The Events page for EDN-JMS implementations does not display the Subscribe button for subscribing a database agent to the selected event. Field Description Event Namespace Displays the event namespace. Event Name Displays the event name. 32-4 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite

7. Click Subscribe.

8. Click Test to test a selected event. This action enables you to publish a test event

that subscribers can act upon. The Test Event dialog appears. 9. Specify the XML payload to use in the test.

10. Click Publish.

For more information, see the following documentation: ■ Section 1.2.8, Introduction to the Contents of SOA Composite Applications ■ Oracle Fusion Middleware Developers Guide for Oracle SOA Suite for details about business events

32.3 Managing Business Event Subscribers

You can also create, edit, and delete existing database subscriptions. When a business event is published, service components and database agents can subscribe to it. Use this page to view all subscriptions to business events. This page also enables you to manage event subscriptions by database agents. Service component subscriptions are Database Agent Specify a database agent name or click Create Agent to create an agent. The agent listens for and subscribes to appropriate events when they are published. Consistency Level Select one of the following options: ■ Guaranteed : Delivers events to the subscriber asynchronously without a global transaction. The subscriber can choose to create its own local transaction for processing, but it is committed independently of the rest of the event processing. By default, guaranteed delivery attempts to deliver the event to the subscriber for three times. If it cannot deliver the event in these three attempts, then the delivery fails. Also, there is a possibility that a system failure can cause an event to be delivered multiple times because there is no global transaction. If the subscriber throws an exception or fails in any way, the exception is logged, but the event is not resent. ■ Immediate : Delivers events to the subscriber on the same transaction and same thread as the publisher. The publish call does not return until all immediate subscribers have completed processing. If any subscribers throw an exception, no additional subscribers are invoked and an exception is thrown to the publisher. XPath Filter If you want to filter the event, specify an XPath expression. When the subscription is delivered and the expression logic is satisfied, the event is accepted for delivery. If the logic is not satisfied, the event is not delivered. Note: Enforcement of policies for event subscriptions is not supported in this release. You can attach or detach a policy to or from a service component that subscribes to a business event such as Oracle Mediator without being warned. This action does not result in any errors; policy enforcement simply does not occur. Field Description