BizTalk Server Orchestration - Correlation problem

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > July 2004 > Correlation problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Correlation problem
Jay

2004-07-27, 5:53 pm

Hi,

I have an orchestration that receives an XML message, transforms it into a flat file and sends it to an RS6000 system.
The original XML message can be either a "Purchase Order" or a "Purchase Order Request".
The structure of the message is for both types identical and when sending the message to the RS6000 system I do not need to make a difference between the two types.

The RS6000 system then sends me a confirmation. This can be either a "Purchase Order Confirmation" or a "Purchase Order Request Confirmation".
At this point I have two receive locations and two different schemas.

In the orchestration I use correlation to complete the flow.

The problem is that from a functional point of view it is possible to receive AND a "Purchase Order Confirmation" AND a "Purchase Order Request Confirmation".
I do not no in advance if I will receive one or two responses.
If I receive one response I do not know upfront which one I will get.

I have no confirmation yet about the response time difference between the two responses but I suppose a time out of 10 minutes would do.

Can anyone help me with this?

Thanks a million.

J.
Matt Milner

2004-07-27, 5:53 pm

After you send and are ready to receive do the following:

Add a parallel shape with two branches.
In the first branch, add a listen shape and put a receive shape in the first
branch of the listen for your PO confirmation. In the other side of the
listen shape, put a delay in with the your timeout.
In the other branch of the parallel shape, put another listen shape. In one
side of the listen, put your receive for the PO Request Confirmation and in
the other side put a delay shape with your timeout.

this gives you two threads listening for the two messages you want to
receive. On each thread you can either receive or timeout.

will that work for you?

Matt


"Jay" <Jay@discussions.microsoft.com> wrote in message
news:41976E7D-7454-4173-B7C0-8FEF1B275722@microsoft.com...
> Hi,
>
> I have an orchestration that receives an XML message, transforms it into a

flat file and sends it to an RS6000 system.
> The original XML message can be either a "Purchase Order" or a "Purchase

Order Request".
> The structure of the message is for both types identical and when sending

the message to the RS6000 system I do not need to make a difference between
the two types.
>
> The RS6000 system then sends me a confirmation. This can be either a

"Purchase Order Confirmation" or a "Purchase Order Request Confirmation".
> At this point I have two receive locations and two different schemas.
>
> In the orchestration I use correlation to complete the flow.
>
> The problem is that from a functional point of view it is possible to

receive AND a "Purchase Order Confirmation" AND a "Purchase Order Request
Confirmation".
> I do not no in advance if I will receive one or two responses.
> If I receive one response I do not know upfront which one I will get.
>
> I have no confirmation yet about the response time difference between the

two responses but I suppose a time out of 10 minutes would do.
>
> Can anyone help me with this?
>
> Thanks a million.
>
> J.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com