Example Procedure for Performing a Transformation Using Simple Data Types

To transform simple data types, use a business process service.

The following procedure is an example of how to create a business process service that takes two data types as input and returns the sum of those inputs.

  1. Create a service with a business process binding.
  2. In the editor, select the Service Interface tab.
  3. Add two input parameters with the simple data type integer.
  4. Add one output parameter with the simple data type decimal.
  5. Select the Business Process tab in the Service Binding editor.
  6. Right-click on the Business Process canvas to activate the Tool Palette.
    Note: 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.
  7. From the Activities tool palette, drag and drop the Assign activity onto the business process canvas.
  8. Connect the output node of the operation1Request to the input node of the Assign and connect the output node of the Assign to the input node of the operation1Response.
  9. Select the Assign activity.
  10. In the Business Process Variables section, expand Interface Variables until you see the variable parameters you created in steps 3 and 4.
  11. Expand the Properties section.
  12. Drag newParameter1 from Variables and drop it in the Source column of the Assign in the Assign Overview tab in Properties.
  13. Drag newParameter3 from Variables and drop it in the Target column of the Assign in the Assign Overview tab in Properties.
  14. In the Properties section, select the first Assign tab to display the Source and Target XPath for this assignment.
  15. In the Source tab of the Source XPath, position the cursor at the end of the XPath to newParameter1 and type a space.
  16. Right-click and select Operators > +, then type a space after the +.
  17. Drag newParameter2 from the Variables section and drop in on the canvas immediately after the +.
  18. Save the business process.
Related concepts
Assign Activities
Related tasks
Developing a Transformation Service

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.