How to Process unknown number of messages in a specific orde

Home Page Forums BizTalk 2004 – BizTalk 2010 How to Process unknown number of messages in a specific orde

Viewing 1 reply thread
  • Author
    Posts
    • #12185

      Hi,
      I’m relatively new to biztalk, so forgive me if this is a really simple question.

      Here’s the situation: any number of flat files ( i don’t know how many beforehand) will be put in a directory all at once. the naming pattern is 100.txt, 101.txt, 102.txt etc..

      i need to process them in the order that they are named. Sometimes there will be only 1 file, sometimes there may be 20.

      How can i accomplish this, and is there a messaging pattern named after this scenario?

      Thanks in advance
      -j

    • #12186

      Hi,

      >>How can i accomplish this, and is there a messaging pattern named after this scenario?

      The pattern you are looking for is the resequencer:
      http://www.eaipatterns.com/Resequencer.html

      I’d agree with Stephen’s comments about implementing this in BizTalk, it may be a bit trickey.

      If you’r pretty advanced with C# or .net, you may want to look at building a file adpater that can read in the files in the specified order, and get them processed through the mesage box in that order (you may also need to build a sequential convoy to achieve this (check Stephen’s \”Convoy Deep Dive\” article on MSDN for info on this)).

      To get started with a custom adapter, there’s a FileAdapter sample in the SDK, and also an adpater wizard available on gotdotnet to get you started with a new adapter project. Be aware that builsing adapters is a pretty advanced topic in BizTalk, be prepered to sink some time into it if you try…

      Regards,

      Alan

      • #12187

        I have been putting off responding to this for a bit

        The long and short of it is, I think it is doable but it would take a lot of work. Probably some external tables to store the data.

        I think I have seen some items on GotDotNet.com that might help. Something about a sorter adapter.

        Hope this helps.

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