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.
- Create a service
with a business process binding.
- Select the
Business Process tab.
- Expand the
Properties section in the Business Process page.
- Define a
correlation set:
- Click
inside the business process
canvas.
- Click
New in the Properties section.
A default <CorrelationSet#> appears in the Correlation
sets box.
- 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.
- 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.
- Select
the default variable name and type a new name in the Name column.
- 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.
- Associate a message
with the correlation set:
- Select
the Request/Response operation or the service invocation on the canvas.
- 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.
|
- Click
New and select the correlation set in the
list box to display the correlation set variables in the Variables table.
- To
associate each of the correlation properties with an operation in business
process, click in the
Variable Reference field and click the
ellipsis
to display the Variable Reference dialog.
- 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.
- 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. |
- Select
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.