Defining Business Process Correlation Sets

Correlation sets define a collection of properties that are then bound to individual pieces of data within a message. When a message is properly correlated, the data for the properties defined in the initial message matches the data for the correlation properties defined in a subsequent message.

  1. Create a service with a business process binding.
  2. Select the Business Process tab.
  3. Expand the Properties section in the Business Process page.
  4. Define a correlation set:
    1. Click inside the business process canvas.
    2. Click New in the Properties section.

      A default <CorrelationSet#> appears in the Correlation sets box.

    3. Select the default correlation set name in the Name field and enter a new name.

      The name change is reflected in both the Correction sets list box and in the Name field.

    4. To create a variable for the correlation set, click Create under the Variables table.

      A new variable appears in the table named CorrelationSetVariable# with a type of string.

    5. Select the default variable name and type a new name in the Name column.
    6. Click in the Type field, and select a data type from the drop-down list.

      Correlation properties are limited to simple types. You can have a correlation property nested within an XML document, but the correlation cannot be performed on subtrees of an XML document.

  5. Associate a message with the correlation set:
    1. Select the Request/Response operation or the service invocation on the canvas.
    2. In the Properties section, select one of the following:
      • For a request or response operation, select the Correlations tab.
      • For a service invocation, select one of the following:
        Tab Description
        Request Correlations Defines the correlation on the Request message to the invoked service.
        Response Correlations Defines the correlation on the Response message returned from the invoked service.
    3. Click New and select the correlation set in the list box to display the correlation set variables in the Variables table.
    4. To associate each of the correlation properties with an operation in business process, click in the Variable Reference field and click the ellipsis the ellipse box 
      to display the Variable Reference dialog.
    5. Do one of the following:
      • For a request or response operation, expand the Interface Variables list, select a variable from the list, and click OK.
      • For a service invocation, expand the Invoked Service Variables list, select a variable from the list, and click OK.

      The selected variable populates the Variable Reference field.

  6. To initiate the correlation set, do one of the following:
    Option Description
    Initiate correlation set Select this if you are using the correlation set for the first time, or applying this correlation to a service invocation.

    A correlation set can only be initiated once for a business process that contains the correlation set.

    Do not initiate correlation set Select this if you are using the correlation set for repeatedly.
  7. Select File > Save from the main menu bar.
Related concepts
Business Process Correlation Sets
Related tasks
Designing a Business Process
Building a Complex Activity
Creating a Loop
Defining Business Process Variables
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.