Defining a Context Variable in a Business Process Service

Context variables are defined and used in a business process service. A context variable is a convenience variable that holds a value in a running business process. Context variables are not bound to a specific request, send, or service invocation activity.

To define a context variable:

  1. Create a Business Process Service.

  2. In your business process, select the Business Process tab.

  3. Expand Business Process Variables or open the Variables Panel view.

  4. Select Local Variables, right-click, and select New Variable from the context menu.

  5. Expand Properties or open the Properties Panel view.

  6. Select the default name and type a meaningful name for the variable in the Name field.

  7. (Optional.) Type a description of the variable in the Description field.

  8. Select one of the following data types:

    • Simple

      1. Click the down arrow and select a data type from the drop-down list.

      2. (Optional.) Type a default value in the Default field.

    • Complex

      1. Select Browse for Schema.

        The Schema Browser appears.

      2. Select a schema and click OK.

        The Complex type field must display the location and name of the xsd and the root element.

        For example: /myxsdfiles/CustomerNS.xsd#Customer, where CustomerNS.xsd is the xsd file name and Customer is the element name.

        Note

        If you browse to locate the schema and cannot locate it, verify that the schema is in the project. You must import a schema (.xsd file) into a project as a file system resource.

    • Reply-to Address

      This allows you to pass message header information.

Opening a View

Business Process Service

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