10-26-05 10:52 PM
Hello KriS,
So I am not sure but I think this pattern is not possible. I am assuming
both Receives in the Loop are following the same correlation set. What happ
ens
when the correlation set is initialized is that the subscriptions for both
of those receives are created, which is why the first message is routed to
both Receive shapes. I think the only thing that might work is that if you
had a send before the second receive and you initalized a new correlation
set for the second Receive using the Send. I am not postivie that will comp
ile
- because you essentiallly are doing a multiple sequential receive pattern,
which is a special messaging pattern that the designer is aware of, but that
would be the only way to make the second receive subscription wait.
BTW - why have two receives in the loop - can't you acccomplish the same
functionality in the loop itself with just one receive? Maybe I don't under
stand
the functionality you are trying to build.
Jon Flanders [MVP]
http://www.masteringbiztalk.com
> Hello All,
>
> I have an orchestration which comes to life with a init message and
> has two consecutive listen shapes(L1, L2), each with a delay of 20
> seconds. Each listen shape is in a loop. The recieve shape in each of
> the listen shapes is tied to a direct port to the message box
> listening to a particular message(MSG 1).
>
> In the first listen(L1) shape I have decision shape (D1), the
> successful branch would send a message to a file location depending on
> some rules, if it sends a file then it would set the variable to
> "false" on which the next listen shape L2 would work. So that the next
> listen shape will not execute.This works fine.
>
> Lets say I recieve a message which falls in to the else path of the
> decision shape (D1) then I want the next listen(L2) to wait for a next
> message from the same port(tied to message box) which the recieve
> locaiton of listen shape 1 was tied.
>
> But the thing I am seeing is that the first message which L1 recieved
> is being passed on to the next listen shape L2. I want L2 to listen
> for another new message from the port tied to message box.
>
> Can this be done using listen shapes? Or is there any other way to
> solve this porblem?
>
> Any help would be much appreciated.
>
> Thanks in Advance,
> KriS.
[ Post a follow-up to this message ]
|