Defining Business Process Variables

You can define interface and local variables.

Use the Business Process Variables section on the Business Process page to define, edit, view, or delete the following variables:

  1. Create a service with a business process binding.
  2. Select the Business Process tab in the service editor.
  3. Expand the Business Process Variables section below the design canvas to display the following variable categories.
    Table 1. Business process variables
    Variable Description
    Interface Specifies the parameters that are part of the business process service interface. These include:
    • Input parameters
    • Output parameters
    • Fault parameters
    Invoked Services Specifies the interface parameters for a service operation invoked within a business process. These variables are automatically generated when you add the operation to the business process. You must edit these variables from the invoked service using the service editor.
    Local Specifies the local, user-defined variables that are only visible within the context for which they were defined.

    For example, if you create a variable for complex activity in the business process service, this variable is accessible to the complex activity itself and any activities contained within that activity.

  4. Define the Interface Variables using the Business Process Variables section on the Business Process page:
    1. Expand Interface Variables to display the business service operations.
    2. Right-click an operation and select New parameter to define a parameter.

      The Properties view opens.

    3. Define the following parameter properties:
    Table 2. Interface variables parameter properties
    Property Action
    Name Select the default parameter name and enter the new name in the Name field.
    Description (Optional) Describe the parameter.
    Style Select one of the following data style from the drop-down list:
    • Input
    • Output
    • Fault
    Datatype
    • Simple Type
      1. Select Simple Type.
      2. Select a data type from the drop-down list.
    • Complex Type
      1. Select Complex Type.
      2. Click Browse for the Schema.
      3. In the left pane, select the schema you want to use.
      4. In the right pane, select the root node of the schema and click OK.
        Note: If you cannot locate the schema, verify that you imported the schema into your project.
  5. (Optional) Edit the Invoked Services Variables from the invoked service using the service editor.
  6. (Optional) Define the Local Variables using the Business Process Variables section on the Business Process page:
    1. Right-click Local Variables and select New variable.
    2. Define the following variable properties:
    Table 3. Local variables properties
    Property Action
    Name Select the default variable name and enter the new name in the Name field.
    Description (Optional) Describe the parameter.
    Datatype
    • Simple Type
      1. Select Simple Type.
      2. Select a data type from the drop-down list.
      3. (Optional) Type a default value in the Default field.
    • Complex Type
      1. Select Complex Type.
      2. Click Browse for the Schema.
      3. In the left pane, select the schema you want to use.
      4. In the right pane, select the root node of the schema and click OK.
        Note: If you cannot locate the schema, verify that you have imported the schema into your project.
    • Reply-To-Address

    Select this option to enable the passing of message header information in a business process.

  7. Select File > Save from the main menu bar.
Related concepts
Service Variables
Related tasks
Building a Complex Activity
Creating a Loop
Defining Business Process Correlation Sets
Related reference
Example Procedure for Acting on Repeating Elements in Data

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.