138 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
6. By default, the process is created with a variable and a partner link that we
will not use and need to delete.
7. Right-click the variable and select Delete from the menu, as shown in
Figure 5-41 Delete default variable
8. Right-click the partner link shown in Figure 5-42 on page 139 and select
Chapter 5. Using WebSphere Studio 139
Figure 5-42 Delete default partner link
Create partner links
We now need to create a partner link for the Calculator Interface.
1. Using the left mouse button, drag the CalculatorInterface .wsdl file from the
itso.demo.services package in the service view, onto a blank space on the
BPEL editor canvas.
2. Select a port type of CalculatorInterface, as shown in Figure 5-43.
3. Click OK.
Figure 5-43 Choose port type from the wsdl
140 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
4. Make sure the calculatorInterface partner link is selected under partner links.
5. In the details area, click the Implementation tab. See Figure 5-44.
Figure 5-44 In partner role name
As can be seen in Figure 5-44, the partner link is currently set up with a
partner role. We need this to be moved to a process role.
6. Click the <--> button between the two roles. This will shift the role to the
process role, as can be seen in Figure 5-45 on page 141.
Chapter 5. Using WebSphere Studio 141
Figure 5-45 Moved to process role name
We now need to set the variable in the Receive activity.
1. Select the receive activity on the canvas.
2. Select the Implementation tab in the details area.
3. Make sure the partner link drop-down says CalculatorInterface.
4. Make sure the operation drop-down is showing DoCalculation.
We now need to make a new request variable.
1. Click New, which is on the right-hand side of the details area next to the
2. Give the variable a name of CalculatorRequest.
3. Click OK. The screen should now look like Figure 5-46 on page 142.
142 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
Figure 5-46 Set the partner link operation
4. Click the newly created variable, under variables on the canvas.
5. Click the Message tab in the details area.
As Figure 5-47 on page 143 shows, you can see that the message parts are
automatically imported and understood by the BPEL editor.
Get Using BPEL Processes in WebSphere Business Integration Server Foundation Business Process Integration and Supply Chain Solutions now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.