cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie Question: Correlation when no matching elements exist

Former Member
0 Kudos

I have a request with an order number that gets sent to another BPM for a lookup. If the order number exists, the called BPM responds with returnCode=0 and the list of order contents (along with the order number).

However, if the order number does not exist, the called BPM returns just one element returnCode=1 and nothing else.

How can I create a correlation in this situation? One simple solution might be to change the response to include order number whether the order exists or not.

But, I am wondering if XI (3.0 SP13) has any other way of generating its own correlation-ids or keys (pardon my usage of terminology if it's incorrect) - instead of depending on defining the matching elements in the involved messages?

Thanks,

Badari

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you - Michal, Moorthy and Leo.

Leo,

Can you please explain how to use MessageId as a Correlation. Is it something that can be generated with a container element? If it is something that I can get only during runtime, I guess then there is no way I can use it in correlation at design time.

Thanks,

Badari

Former Member
0 Kudos

last time

i used the Message_ID as the correlation field

moorthy
Active Contributor
0 Kudos

Hi,

It is prefer to go with Response here with order no.

Other than that as Michal suggested , with guiid ..but etxra effort ..

Regards,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

there's only one way:

you need to send it and receive it

you can either you the order number

in request and response

or you send a guid (which you can generate youself

in the mapping)

but it will have to go as order number

in request and response

so it's more or less the same

but you need to create the GUID aditionally

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>