Defining Business Process Variables

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

You can also define and edit business process parameters (Interface variables) using the Operation Parameters section on the Service Interface page.

To define a business process variable:

  1. Create a Business Process Service.

  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.

    Business Process Variables

    VariableDescription

    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 in the Business Process page:

    1. Expand Interface Variables to display the business service operations. Right-click an operation and select New parameter from the context menu to define a parameter.

      The Properties view opens.

    2. Define the following parameter properties:

      Interface Variables Parameter Properties

      PropertyDescription

      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 have 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 in the Business Process page:

    1. Right-click Local Variables and select New variable from the context menu.

      The Properties view opens.

    2. Define the following variable properties:

      Local Variables Properties

      PropertyDescription

      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. Save the service. Select File|Save from the menu bar.

Adding Parameters to a Business Process Service Operation

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com