Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Looping Files
- This topic has 3 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
August 23, 2010 at 6:24 AM #25711
Hello,
I have following scenario:
First I read file receive and send parameters from .cfg file.
Then I should read all the files from directory that fill the criteria I get from that .cfg file.
f.e all files with .xml ending and ORDER prefix
Which would be the best solution for doing this with biztalk?
If I build loop inside orchestration, am I able to somehow use those criteria on receive port so that only files I want are read from receive port?
Or am I able to somehow build correlation set and use it with those files?
Any help will be greatly appreciated
Woltor
-
August 23, 2010 at 1:39 PM #25718
Hi,
What you need – it is to build an Aggregator. I think there’s a sample in BizTalk SDK/Samples – how to build one. You can also receive files unordered and to set order after you receive all your files. (Meanwhile save them in SQL, as binary blobs, wtih identificators of some kind – guid for example). When all files received (how do you know that all of them arrived? By names? By amount? By time?) – get them already ordered with stored procedure. In this way you dont have to keep an instance of orchestration in the air (though it will be dehydrated).
-
August 25, 2010 at 2:28 AM #25741
Hi, and thx for answer.
I dont need to send files in any specific order,
I just need to send all files from directory which filenames apply the criteria I got from .cfg file.
i.e there is SALE pattern in .cfg file I should read and send all files that have SALE prefix.
but is it somehow possible to use that “SALE” prefix on correlation?and is it also possible to use aggregator with non-xml messages?
-
September 1, 2010 at 11:38 AM #25849
Not SALE files – (if you have any) – what do you intend to do with them?
I would wright a windows service, which would check your directory and look for SALE prefix files. after find one – move that file to another folder/SQL table as blob. After you get some files (let’s say 5) – you collect them and send as non XMLbut – in what way? binary? blob? CDATA? who/what expects to receive those files?
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.