148 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
Figure 5-52 Setting the condition on operation part in request message
The right-hand pane now changes to show the valid methods that can be called.
1. Scroll down to equalsIgnoreCase and select it. See Figure 5-53 on
page 149.
Chapter 5. Using WebSphere Studio 149
Figure 5-53 Choosing the method for the comparison
2. Click anotherString, as shown in Figure 5-54 on page 150.
3. Click string in the right-hand pane.
4. Enter the text add.
5. Click OK.
150 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
Figure 5-54 Specify the string to compare against
6. Add three more case activities to the OperationSwitch. Name the cases:
SubtractCase
DivideCase
MultiplyCase
7. Add conditions to each case:
SubtractCase -
CalculatorRequest.operation.equalsIgnoreCase("subtract")
DivideCase - CalculatorRequest.operation.equalsIgnoreCase("divide")
MultiplyCase - CalculatorRequest.operation.equalsIgnoreCase("multiply")
Chapter 5. Using WebSphere Studio 151
Create the invoke activities
Next we add an Invoke activity to call the Calculator partner link.
1. Select an Invoke activity from the palette and drag it to the canvas between
the Receive and Reply activities. Rename the activity InvokeAdd. See
Figure 5-55.
Figure 5-55 Add an invoke to the case statement
2. On the Implementation tab for the InvokeAdd activity select Partner Link
Calculator, Port Type Calculator, and Operation Add. See Figure 5-56 on
page 152.
152 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
Figure 5-56 Choose the add operation
3. Click New and add a request variable called AddRequest. Figure 5-57 on
page 153 shows the new variable.

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.