Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Multiple Receive Shapes with timeout › Re: Multiple Receive Shapes with timeout
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.