Defining the Callback Interface for BPMN Processes Using a Send Task

21-20 Modeling and Implementation Guide for Oracle Business Process Management 21.9.1 How to Use an Interface from the Business Catalog to Define an Operation in a BPMN Process Interface Using Send and Receive Tasks You can use an interface from the business catalog to define your BPMN process interface. 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 Continues. 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.

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 component 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. 12. If the interface you selected requires input data, then you must specify how the data objects in the project map to this input data, by configuring the message event data association. For more information on how to configure data associations, see Section 8.13, Introduction to Data Associations .

13. Click OK.

14. Configure an existing message end or message throw event to use an interface from the business catalog or add a new event and configure it, following the procedure described in Section 21.5.2, How to Configure a Message End or a Message Throw Event to Use an Interface from the Business Catalog Using Message Events . 21.9.2 How to Configure a Message End or a Message Throw Event to Use an Interface from the Business Catalog Using Send and Receive Tasks You can use an interface from the business catalog to define your BPMN process interface. To configure a message end or message throw event to use an interface from the business catalog: 1. Edit the BPMN process. 2. Right-click the message end or message throw event. Defining the Process Interface 21-21

3. Select Properties.

4. Click the Implementation tab.

5. In the Conversation section, select Continues.

The Properties section changes, the Initiator Node, Name and Operation fields appear. 6. From the Initiator Node list, select the message start or message catch event that defines the process interface.

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

The Type dialog appears. 8. Select the component you want to use as the message catch or message end interface.

9. Click OK.

10. From the Operation list, select the operation you want to use as the as the message catch or message end interface. 11. If the interface you selected requires input data, then you must specify how the data objects in the project map to this input data, by configuring the message event data association. See Section 8.13, Introduction to Data Associations , for more information on how to configure data associations.

12. Click OK.

21.9.3 What Happens When You Use Send and Receive Tasks with an Interface from the Business Catalog to Define an Operation The operation you define uses the signature of the operation form the interface in the business catalog. To invoke the operation in the BPMN process you must use the same operation name and input that you use to invoke the operation in the interface from the business catalog. The operation in the BPMN process returns the same output that the operation in the interface from the business catalog. The SOA composite shows a wire between the BPMN process and the interface used to define its operations. If you define all the process operations using interfaces from the business catalog, then JDeveloper asks if it should delete the BPMN process WSDL. Because the BPMN process does not define an interface, but uses existing interfaces, its WSDL is no longer necessary and you can delete it.

21.10 Defining the Process Input and Output

When you add operations to a BPMN process, you are defining points in the process that other processes or services can use to communicate with it. The communication between processes and other processes or services generally requires an input and returns an output. The flow events that you use you to define the BPMN process operations enable you to define input and output arguments. These input and output arguments define the process input and output.