Multiple Receive Shapes with timeout

Home Page Forums BizTalk 2004 – BizTalk 2010 Multiple Receive Shapes with timeout

Viewing 1 reply thread
  • Author
    Posts
    • #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.

    • #21262

       Theese three messages come from a single port ?

      That’s extremely important to know.

      • #21264

         

        Yes.

        • #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.

        • #21267

           So u have one port and three receive shapes fed by the port.

          • #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

            • #21269

               

              Thank you very much boss.

              Its working.[:)]

              • #21270

                 No problem. [Y]

                I wonder How You know about correlation set, and don’t know about listen shape.

                All books on BizTalk give chapters on Shapes before chapters on Correlation sets.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.