The following procedure guides you in creating a request reply operation in a business process service.
To create a request reply business process:
In your business process, select the Business Process tab.
Click on the Business Process canvas to activate the Tool Palette.
If the Tool Palette does not appear either on the Fast View shortcut bar or as an open view in the perspective, open the Tool Palette.
From the Interface tool palette, select the Send Responseactivity and drag and drop it onto the canvas.
Select the Send Response activity on the canvas.
Either expand Properties or open the Properties Panel view.
Click the arrow to open the Operation drop-down list and select the operation that corresponds to the Receive activity in your business process.
Choosing the Receive activity operation links the receive and send activities into a single operation.
Click the Service Interface tab.
Service Interface allows you to add input and output variables.
Expand Operation Parameters.
Select the operation in the Service Interface section.
As an example, in the following figure, you would select Receive1.
Click Add in the Operations Parameters section to add input and output parameters to the request reply operation.
For the request reply operation you are creating, you must add at least one input and one output operation parameter. These parameters will be available in Interface Variables for you to use to as a source and a target when you create an Assign activity.
Expand Properties.
With the operation parameter selected in the Operation Parameters section, type a descriptive name for the parameter in the Properties Name field.
Click the arrow to open the Style drop-down list and select the appropriate style, either input or output.
Click either Simple Type or Complex Type for the data type.
Click the Business Process tab.
Click on the Business Process canvas to activate the Tool Palette.
From the Activities tool palette, select the Assign activity and drag and drop it onto the canvas.
Draw connectors from Receive to Assign and Assign to Send.
This links the activities and establishes the flow.
Select Assign on the canvas.
Expand both Business Process Variables and Properties.
This allows you to assign the input variable to the output variable.
In Business Process Variables, expand Interface Variables until you see the input and output parameters you created in steps 9-15.
Drag and drop the input message from Business Process Variables to the Source column of the Assign activity in the Properties section.
Drag and drop the output message from Business Process Variables to the Target column of the Assign activity in the Properties section.
Select File|Save from the main menu bar
This completes the request reply business process service. This service can now be packaged and deployed.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com