Skip to Content
avatar image
Former Member

Newbie Question: Correlation when no matching elements exist

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 06, 2006 at 11:19 PM

    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>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 07, 2006 at 01:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 07, 2006 at 08:23 AM

    last time

    i used the Message_ID as the correlation field

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 07, 2006 at 02:49 PM

    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

    Add comment
    10|10000 characters needed characters exceeded