Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Multiple Receive Shapes with timeout
- This topic has 7 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
November 27, 2008 at 4:51 AM #21259
Hi,
I have to receive 3 messages, orchestration can activated by one of the input messages. and it should wait for remaining message. if all 3 message are not come withing 10 mins it should raise exception. Can anyone tell me the way how to achive this. Its very urgent. Thanks in advance.
-
November 27, 2008 at 11:40 PM #21262
Theese three messages come from a single port ?
That’s extremely important to know.
-
November 28, 2008 at 12:10 AM #21264
Yes.
-
November 28, 2008 at 12:33 AM #21266
Ok. that is clear. You have a single Receve port.
Orchestration should start with Receive shape accepting message from the port. It initalizes Correlation.
Then goes Listen shape. The first branch of the Listen shape has two, coming one after anothe Receive shapes. These receive shapes will accept second and then third message from the port. They both should have [Follow correlation set].
The second branch of the Listen shape should have TimeOut shape with 10 minutes. and after that timeout shape you should have some Code shape (or whatever) that will set property of your orchestration TimedOut = true;
(Of course you should create bool TimedOut varable in orchestartion designer)
After listen shape you can check the TimedOut property and do some action.
The Listen shape… has several branches.. Actions in all branches are being performed simultaniously, but if some branch finishes execution others branches are terminated and execution goes on in orchestartion.
-
November 28, 2008 at 12:46 AM #21267
So u have one port and three receive shapes fed by the port.
-
November 28, 2008 at 1:03 AM #21268
I tried as you said above but I received following errors: use of unconstructed message ‘Message_2’, #error: “Errors exist for one or more children
In right branch of listen shape i took the delay shape, and expression shape.
can you please check it onece
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.