Using Message Events to Define the Callback Interface for BPMN Processes

21-10 Modeling and Implementation Guide for Oracle Business Process Management See Section 20.5, Using Service Tasks to Invoke Synchronous Operations in Services and BPMN Processes , for more information on how to invoke a synchronous BPMN process. In the SOA Composite, the interface of a synchronous process only shows one operation for the start event. 21.5 Using Message Events with an Interface from the Business Catalog to Define Your Process Interface When configuring the message events that define the interface of your process, you can choose to use an existing interface instead of defining an interface. You can choose any of the operations from the References predefined module in the business catalog and use it as the interface for your process operations. The operation from the reference that you choose to define the interface of your operation, determines if your operation is synchronous or asynchronous. If you define a message start or a message catch event using an interface from the business catalog, then the associated message throw or message end event must also use an interface from the business catalog. If the operation you are defining is asynchronous, then the message throw or message end events can only use callback operations. Generally you define the process interface using an interface from the business catalog to use a interface that exists in the composite and later on add a wire from this interface to the BPMN process. You might provide multiple implementations of the same interface. For example you might implement an existing interface in BPEL and BPMN technologies. To implement the BPMN interface you must define the process using an interface from the business catalog. Figure 21–4 shows how a BPMN process can reuse the interface of a BPEL process to provide a parallel implementation in BPMN. The BPMN process uses the interface of the BPEL process that appears in the business catalog to define its operations. It also shows how the SOA Composite editor indicates that a BPMN process uses another SOA Component to define its interface. Defining the Process Interface 21-11 Figure 21–4 Process That Uses an Interface from the Business Catalog This figure shows a BPMN process that uses an interface from the business catalog and how this reflects in the SOA Composite editor. 21.5.1 How to Use an Interface from the Business Catalog to Define an Operation in a BPMN Process Interface Using Message Start and Catch Events You can use an interface from the business catalog to define the interface of your BPMN process. To use an interface from the business catalog to define an operation: 1. Edit your BPMN process.

2. Add the start event or catch event to use to define the process interface.

3. Right-click the start or catch event.

4. Select Properties.

5. Click the Implementation tab.

6. If you are editing a catch message event, in the Conversation section, select

Initiates. If you are editing a start event this is the default selection and you cannot change it.

7. In the Properties section, select Interface from Catalog from the Implementation

list. The Properties section changes and the Name and Operation appear.

8. Click the Browse button next to the Name field.

The Type dialog appears.

9. Select the reference you want to use as the process interface.

10. Click OK.

11. From the Operation list, select the operation you want to use as the process

interface.