Example Procedure for Creating a Send Response Business Process Interface

This topic contains an example procedure detailing how to design a business process that sends responses.

  1. Create a service with a business process binding.
  2. Define input and output parameters for the operationRequest:
    1. Select the Service Interface tab in the Service editor.
    2. Select the operation on the service interface.
    3. Expand the Operation Parameters section and add the following parameters:
      Table 1. Service operation parameter properties
      Name Style Datatype
      input Simple string
      output Simple string
    4. Save the service. Select File > Save from the main menu bar.
  3. Select the Business Process tab to display the canvas.
  4. Add Single-rule logic to the business process:
    1. Click inside the Business Process canvas and select the Tool Palette from the Fast View shortcut bar.
    2. Select Single rule from the Logic tool palette and drag and drop it onto the canvas.
    3. Select the Single rule on the canvas.
    4. Drag the input operation parameter from Interface Variables onto the XPath editor.
    5. Position the cursor at the end of the dropped parameter, right-click and select Operators > =.
    6. Position the cursor at the end of the dropped operator, right-click, and select Generic Variables and Constants > string constant.
  5. Select File > Save from the main menu bar.
  6. To add an Assign activity, drag Assign from the Activities tool palette and drag it after the Single-rule.
  7. To define the Source and Target variables for the Assign, select the Assign and drag the input parameter from the Local Variables list in the Business Process Variables section to the Source column in the Properties section.
  8. Drag the output from the Local Variables list in the Business Process Variables section to the Target column in the Properties section.
  9. To define an XPath expression for the Assign, select the Assign activity on the canvas and then select the Assign tab in the Properties section.
  10. In the XPath edit box, position the cursor where you want to insert functions or operators, right-click and select String Functions > concat. The String Function is inserted into the edit box.
  11. Edit the function to remove the error marker that appears to the left of the expression.
  12. In the XPath edit box, position the cursor where you want to insert functions or operators, right-click inside the editor and selectGeneric Variables and Constants > string constant.
  13. Rename the string constant operator to single hit rule.
  14. Select single hit rule and then select the Bind Source Text checkbox in the Properties section.
  15. Replace the Select Variable. Drag input from the Local Variables list in the Business Process Variables section onto the Select Variable.
  16. Connect the input operator to the upper input node of the concat operator.
  17. Connect the single hit rule operator to the lower input node of the concat operator.
  18. Connect the output node of the concat operator to the output operator.
  19. Save the service. Select File > Save from the main menu bar.
  20. To add another Assign activity after the Single-rule, drag Assign from the Activities palette and drop it after the Single-rule.
  21. To define the Source and Target variables for the Assign, select the Assign and drag the input parameter from the Local Variables list in the Business Process Variables section to the Source column in the Properties section.
  22. Drag the output from the Local Variables list in the Business Process Variables section to the Target column in the Properties section.
  23. To define an XPath expression for the Assign, select the Assign activity on the canvas and then select the Assign tab in the Properties section.
  24. In the XPath edit box, position the cursor where you want to insert functions or operators, right-click and selectString Functions > concat.
  25. In the XPath edit box, select a concat parameter function, right-click inside the editor and selectGeneric Variables and Constants > string constant. 'abc' is inserted for a concat parameter.
  26. Select the other parameter's concat, drag input from the Local Variables list in the Business Process Variables section onto the Xpath editor.
  27. Position the cursor at the end of function concat, right-click, and select Operators > !=.
  28. Position the cursor at the end of operator != and drag output from the Local Variables list in the Business Process Variables section onto the Xpath editor.
  29. Select File > Save from the main menu bar.
  30. Connect the second flow of execution. Connect the upper hit node of the Single-rule to Assign, and the lower hit node of the Single-rule to the second Assign.
  31. Add a Send Response interface to the business process. Select Send Response from the Interface tool palette and drag it on to the canvas.
  32. Rename the Send Response interface. Select Send Response and change the name to operation1Request in the Properties section.
  33. Select File > Save from the main menu bar.

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.