Chapter 5. Business process management with Business Process Manager 143
Figure 5-35 Attach UCA to the business process
5.6.3 Creating a mediation flow
A mediation is a way of mediating or intervening dynamically between services, and a
mediation flow implements a mediation. We need to create a new mediation flow that exposes
a JMS-based input interface and connects it with your newly created web service endpoint as
the destination interface.
First open Integration Designer, and then open Process Center. It will look exactly as it does
when you open it in Process Designer, so do not be concerned.
1. Open the Warranty Process application.
2. Then, right-click the process application and click New Mediation Module.
3. Name the module WarrantyMessageMediationModule, and click Next (Figure 5-36).
Figure 5-36 Create a mediation module
4. Ensure that Eager Parsing is selected and click Next.
5. Expand the Business Integration branch, select WSDL and XSD (Figure 5-37 on
page 144) and click Next.
144 Implementing an Advanced Application Using Processes, Rules, Events, and Reports
Figure 5-37 Select WSDL and XSD
6. Select Remote WSDL or XSD file (Figure 5-38) and click Next.
Figure 5-38 Select Remote WSDL or XSD file
7. Enter the address that you discovered in the Event Development in 4.5, “Overview of
Event Rules” on page 92 and click Next.
Chapter 5. Business process management with Business Process Manager 145
Figure 5-39 Import WSDL
8. Click Finish.
9. Add the association of the mediation module with the Warranty Processes application, as
shown in Figure 5-40, and click Next.
Figure 5-40 Select association with process application
10.Specify a transport protocol of SOAP1.1/HTTP (Figure 5-41 on page 146) and click
Finish.
146 Implementing an Advanced Application Using Processes, Rules, Events, and Reports
Figure 5-41 Select transport protocol
11.Select the SOAPEventPort, which is located under web service ports; drag it onto the
assembly diagram, and note that an interface (SOAPEventPortType) and a data definition
(EventReceived) are created (Figure 5-42).
Figure 5-42 Warranty Message Mediation Module: Assembly diagram
12.Right-click the Mediation Module in the resource tree and select New Other.
13.Under XML, select XML Schema (Figure 5-43). Click Next.
Chapter 5. Business process management with Business Process Manager 147
Figure 5-43 XML Schema
14.Name the file input.xsd and place it in the Mediation Module that you created.
15.When prompted that there was an error loading the business object (Figure 5-44), click
Yes to open the XSD editor.
Figure 5-44 Error message: Error Loading Business Object
16.In the Source tab, paste the code shown in Example 5-1.
Example 5-1 input.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="CLUSTERID" type="xsd:string"/>
<xsd:element name="TIMESTAMP" type="xsd:string"/>
<xsd:element name="APPMESSAGE">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="CLUSTERID" />

Get Implementing an Advanced Application Using Processes, Rules, Events, and Reports now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.