Orchestration activation pattern

Home Page Forums BizTalk 2004 – BizTalk 2010 Orchestration activation pattern

Viewing 2 reply threads
  • Author
    Posts
    • #15760

      Here is my scenario: My business process starts with a web service response.  I call a web service ( the request is same always) and get the web service response and process the web service response message.  I need to call the web service in every 5 minutes.

      I am thinking of putting the orchestration in a never ending loop with a 5 mins delay and call the web service from within thye loop. I know there is a problem with it that, if due to some case the orchestration terminated/dehydrated, the admin has to go and start it again ( unlike the file drop pattern, where if one instance failed/dehydrated, next instance will start when a new file arrives in the receive port)

      Can anyone please tell me this approch is fine or is there any better way of doing this..?

      Thanks ,

      Shan. 

       

    • #15761

      You can use this adapter to send  a trigger message to initiate your orchestration every 5 minutes.

      http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=E473FC93-5081-44C7-A9C9-84BF4E783728

      • #15763

        Thanks Greg.. This is exactly what I was looking for. I was thinking about some "out of the box features", but never thought about a custom adapter..

         I have installed it for BizTalk 2006 version. I am not able to open the Help File from the installable folder. Could you please let me know can I see how to configure the adapter..?

        • #15764

          To open the help file with VS2005 you need to create a shortcut with this target:

          C:\Program Files\Common Files\Microsoft Shared\Help 8\dexplore.exe" /helpcol ms-help://TKH.ScheduledTaskAdapter/ScheduledTaskHelpFile/home.htm

          You need to add the adapter, in the Biztalk Admin Console, open the Platform Settings -> Adapters
          Then New -> Adapter, give it a name e.g. "Schedule" and select Schedule from the drop down.
          The adapter is added to the default host instance, you may like to change this.

          Create a schema in your project for the trigger message. Make it simple just a root node and a namespace. Generate an instance of this schema

          Add a receive port and receive location – select transport type of Schedule -> Configure
          Select the schedule property ellipsis and set the schedule to Timespan 5 minutes
          Select the task property ellipsis and select XmlStringStreamProivider -> paste the generated instance of the trigger message.
          OK…

          Select XmlReceive Pipeline

          In your orchestration set the activate receive shape to receive a trigger message and bind this the orchestration receive port to the receive port just created.

          • #15787

            Thanks a lot Greg.

            I configured it and tested.. working perfectly..

            Regds,

            Shan.

          • #20407

             

            Hi Greg

            Wonderful work there with the ScheduledTaskAdapter. I am not able to view the help file.

            C:\Program Files\Common Files\Microsoft Shared\Help 8>dexplore.exe /helpcol ms-help://TKH.ScheduledTaskAdapter/ScheduledTaskHelpFile/home.htm

            gives the below error:

            Microsoft Document Explorer cannot be shown because the specified help collection ‘ms-help://TKH.ScheduledTaskAdapter/ScheduledTaskHelpFile/home.htm’ is invalid.

             

            Please help resolve.

          • #21034

             XmlStringStreamProivider how can I setup that.

            I get to the Task properties -> Find Task -> Browse

            after that I’m stuck, the Select button is grayed out and the text area is disabled

            Any help?

      • #20493

        seems the sample code has been migrated. can you please let me know the new path

         

    • #24567

      Hey Shan,

      I’m 4 years late with the solution, but hopefully this is of use to you.  We recently hit the same issue, and I have an aversion to third party solutions, as this normally means extra cost, less support, and more complexity.  However, I’ve just spoken with a consultant who’s provided a great fix.

      Use the normal SQL adapter to poll the SQL Server on which BizTalk’s data is hosted (or any SQL Server DB), and have this call the command “select 1”.  This will always return a result, so will always trigger your orchestration.  Set this port up so that Poll While Data Found is false (to save flooding your orchestration), and setting the polling interval as required.  This gives you the scheduling functionality with a fully biztalk friendly method, and no extra expense.

      Hopefully that’ll help out anyone with similar issues in the future.

      Kind regards,

      JB

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