• Entries (RSS)
  • Comments (RSS)

Creating a correlation set WebSphere Integration Developer

Posted by | Posted in Websphere Process Server / Integration Developer | Posted on 21-07-2008

Tagged Under : , , , , , ,

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.

Interface

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.

business process

business process

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.

Add correlation Set

Add correlation Set

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.

Create Property Alias

Create Property Alias

4.7. Repeat it from the second operation also.
4.8 Click on OK

Create Correlation Property

Create Correlation Property

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.

Recieve correlation

Receive correlation

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.

Share

Read More

Comments

5 comments posted onCreating a correlation set WebSphere Integration Developer

  1. This is a very nice straight forward way of illustrating the use of correlation sets. I needed that. Thank you :smile:

  2. 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 ?

  3. [...] Comments Arun on Creating a correlation set WebSphere Integration Developermics on Creating a correlation set WebSphere Integration DeveloperAlbin Joseph on Start a long [...]

  4. @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/.

  5. Not too useful, I even had to find out more about correlation sets in order to use them…

Post a Comment