Creating a correlation set WebSphere Integration Developer
Published July 21st, 2008 in Websphere Process Server / Integration Developer
This is something I was planning to post for a long time. Due to some or other exceptions I was getting, I couldn’t make it till today. Today’s post is about creating a correlation set in WebSphere Integration Developer. In my example I used a new module for creating the correlation set.
A correlation set is used for associating an external message with the correct process instance. To create a process that is using a correlation set first create an interface with two operations. In my case I am planning for a business process with two receive activities. My interface looks like the one shown below.
Now create a new process using the interface we created in previous step. Use the sayHello method as the operation for this process. Make sure that you have made this process as a long running process and add a second receive to this process. Finally after adding all the elements the business process would look like this.
Don’t worry about the error messages. Set the TestInterface as the partner for the second receive activity also. Select printName as the method name. Now most of the errors will be disappeared. However still there will be some errors present and it is because we don’t have a correlation set defined for the second receive activity. So now it is the time to define a correlation set. To create a correlation set for the business process follow the below steps.
1. Click on ‘Add correlation set’ icon next to Correlation sets from the tray.
2. Enter the name you want and select it.
3. Click on Details from properties window.
4. Now create a correlation property.
4.1. Click on Add
4.2. From th ‘Select Property’ window, click on New.
4.3. Enter a name for your property.
4.4. Click Browse and select the type of your property.
4.5. Create an Alias by clicking on New button next to Aliases label.
4.6. From ‘Create Property Alias’ window, select the interface and the operation.
4.7. Repeat it from the second operation also.
4.8 Click on OK
5. The correlation set is ready now. The next step is to associate the correlation set to the receive activities.
6. Click on Correlation from the first Receive activities’ properties area.
7. Click on Add. The correlation property will be added. Select initiation property as Yes and direction as Receive.
8. Click on second receive activity and add the correlation property. Here set the initiation property value as Join.
8. Build the project. Now all the errors will be disappeared from the module.
Did you like this? If so, please about it, and subscribe to the blog RSS feed.If you enjoyed this post, make sure you subscribe to my RSS feed!
Related Posts:
4 Responses to “Creating a correlation set WebSphere Integration Developer”
- 1 Pingback on Jul 23rd, 2008 at 4:55 pm

































This is a very nice straight forward way of illustrating the use of correlation sets. I needed that. Thank you
How do I run this business process? When I tried to run this process, its not invoking the second recieve activity. How can I invoke the second recieve activity ?
@mics, thank you for your comments.
@arun, a new post on how to run a business process that contains a correlation set has been posted and is available at http://www.albeesonline.com/blog/2008/07/23/running-a-correlation-set/.