Consecutive Listen/Delay Shapes.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Consecutive Listen/Delay Shapes.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Consecutive Listen/Delay Shapes.  
KriS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-05 10:52 PM

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 i
t
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 shap
e
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 ]



    Re: Consecutive Listen/Delay Shapes.  
Jon Flanders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Consecutive Listen/Delay Shapes.  
KriS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-05 10:52 PM

Jon,

Thanks for the reply.

That was my first thought to have a send before the recieve. I already tried
by having a send before the recieve of the listen 2,but that did not work
either. The second recieve still receives the same message which the first
recieve recieved.

The reason I have two listen shapes and have two recieve shapes is for
forwarding this message to the next process. The next process in line would
do its job and wait for the confirmation which would come from the message
box from the same port.

I guess I need to go back and change my design at this point.

Thanks again,
KriS.

"Jon Flanders" wrote:

> 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 ha
ppens
> 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 yo
u
> 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 co
mpile
> - because you essentiallly are doing a multiple sequential receive pattern
,
> which is a special messaging pattern that the designer is aware of, but th
at
> 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 und
erstand
> the functionality you are trying to build.
>
>
> Jon Flanders [MVP]
> http://www.masteringbiztalk.com
> 
>
>
>





[ Post a follow-up to this message ]



    Re: Consecutive Listen/Delay Shapes.  
Jon Flanders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-05 10:52 PM

Hello KriS,  The thing that is going to control this is the correlation set
and when it gets initialized.  When you had the second send - did it initial
ize
the correlation set that the second receive followed?


Jon Flanders [MVP]
http://www.masteringbiztalk.com
[vbcol=seagreen]
> Jon,
>
> Thanks for the reply.
>
> That was my first thought to have a send before the recieve. I already
> tried by having a send before the recieve of the listen 2,but that did
> not work either. The second recieve still receives the same message
> which the first recieve recieved.
>
> The reason I have two listen shapes and have two recieve shapes is for
> forwarding this message to the next process. The next process in line
> would do its job and wait for the confirmation which would come from
> the message box from the same port.
>
> I guess I need to go back and change my design at this point.
>
> Thanks again,
> KriS.
> "Jon Flanders" wrote:
> 







[ Post a follow-up to this message ]



    Re: Consecutive Listen/Delay Shapes.  
KriS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-05 10:52 PM

Jon,
No it does not initialize the correlation set for the second recieve. So
this is the solution I should be implementing. I will post my progress.Thank
s
a lot for the response.
KriS.

"Jon Flanders" wrote:

> Hello KriS,  The thing that is going to control this is the correlation se
t
> and when it gets initialized.  When you had the second send - did it initi
alize
> the correlation set that the second receive followed?
>
>
> Jon Flanders [MVP]
> http://www.masteringbiztalk.com
> 
>
>
>





[ Post a follow-up to this message ]



    Re: Consecutive Listen/Delay Shapes.  
KriS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-05 10:52 PM

Jon,
Just to update my progress. If I had a send with a new correlation set
another instance of the same orchestration is coming to life. So the thing I
did is I got rid of the second listen shape and it works now!.
Thanks again,
KriS.

"KriS" wrote:
[vbcol=seagreen]
> Jon,
> No it does not initialize the correlation set for the second recieve. So
> this is the solution I should be implementing. I will post my progress.Tha
nks
> a lot for the response.
> KriS.
>
> "Jon Flanders" wrote:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:10 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register