Overview of Correlation Set Creation
Table 9-1 provides an overview of the steps for creating a correlation set. References to the pages of the Correlation wizard on which you perform these steps and examples of values to set are provided.
Table 9-1 Correlation Set Creation Overview
Step | Correlation Wizard Page | Example |
---|---|---|
Create a correlation set with property names and types to correlate the exchange. |
Set this information on the Correlation wizard - Define Correlation Set page. See Figure 9-2. |
Create a phonenumber correlation set with property names and types:
|
Add the correlation to the invoke or receive activity that begins the conversation and set Initiate to yes. |
Select the activity and set the Initiate attribute on the Correlation wizard - Initiate Settings page. See Figure 9-3. |
Select the internalReceive receive activity and set Initiate to yes. |
Create property alias mappings to appropriate elements in each message. They must have the same value in both messages of the conversation. The elements can be different names and in different structures in the two messages, but they must contain the same value for correlation to work. |
Set this information on the Correlation wizard - Property Aliases page. See Figure 9-7. Two editors available on this page enable you to create the property alias mappings:
|
Define the property aliases to populate the correlation set property values at runtime:
|
Add the same correlation set with its property to additional activities. Do not set them to initiate. The BPEL process uses this to select the correct process instance. Set the pattern accordingly. |
Set on the Activity Correlation Editor - Initiate Tab. See Figure 9-10. |
Select the internalCallback invoke activity:
|