Use the following example to assist you in designing a business process with multiple interfaces.
Example Business Process with Multiple Interfaces
To create a business process with multiple interfaces:
Define input and output parameters for the service operation:
Select the Service Interface tab in the Business Process service editor.
Select the operation on the service interface.
Expand the Operation Parameters section and add the following parameters:
Save the service. Select File|Save from the main menu bar.
Select the Business Process tab to display the canvas.
Add a Choice activity to the business process:
Click inside the Business Process canvas and then select the Tool Palette using the Fast View shortcut bar.
Select Choice from the Interface palette and drag it on to the canvas.
Add a Receive Request interface to the business process. Select Receive Request from the Interface palette and drag it on to the canvas after the Choice interface.
The operation appears as operation2request.
Add an Assign activity to the business process:
Select Assign from the Activities palette and drag it on to the canvas.
Define the Assign parameters:
Drag the input_op1 parameter from the Business Process Variables section to the Source column in the Properties panel.
Drag the output_op1 from the Local Variables list in the Business Process Variables section to the Target column in the Properties panel.
Save the service. Select File|Save from the main menu bar.
Connect the flow of execution. Connect Start > Choice > operation1request > Assign .
Save the service. Select File|Save from the main menu bar.
Add a second Receive Request interface to the business process:
Open the Business Process Variables section and expand the Interface Variables category.
Right-click operation2request and select New parameter from the context menu. Then, change the name to input_op2 in the Properties panel.
Right-click operation2request and select New parameter from the context menu. Then, change the name to output_op2 and the Style to Output in the Properties panel.
A new operation is added to the business process canvas named operation2response.
Add an Assign activity. Drag Assign from the Activities palette and drag it after the operation2request.
Define the Source and Target variables for the Assign:
Select the Assign and define the Drag the input_op2 parameter from the Business Process Variables section to the Source column in the Properties panel.
Drag the output_op2 from the Local Variables list in the Business Process Variables section to the Target column in the Properties panel.
Connect the second flow of execution, using the example business process in the introduction.
Save the service. Select File|Save from the main menu bar.
Complete the business process. Choose from the following:
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com