The very useful BizTalk Scheduled Task Adapter

September 26, 2011 at 3:17 pm 3 comments

Sooner than later you are going to need to implement a process in BizTalk setup to be activated at certain time of the day or after some period of time. The traditional way to schedule this orchestrations is to use the Windows 2008 Task Scheduler and then create a task capable of executing a program or running a script to deliver an XML file to an specific receive location.

Windows Task Scheduler is a great tool, very complete and highly configurable, but it adds another component outside of your BizTalk solution to take care of. What if you want to have something more integrated to BizTalk to create and manage your schedules? Well, for this situations Greg Forsythe created the BizTalk Scheduled Task Adapter, and adapter completely integrated in your BizTalk architecture that executes a prescribed task on a daily, weekly or monthly schedule. The adapter is configured entirely within BizTalk, all configuration information is stored within the SSODB and can be exported and imported via binding files.

I have mused Greg’s scheduled adapter since the first version for BizTalk 2006 and found it highly stable and reliable. Since I started to migrate BizTalk 2006 architectures I started to look for a way to have it work with the new version but I wasn’t successful until Greg released version 3.0. Although it is labeled as beta it works perfectly with BizTalk 2009 and so far I haven’t experienced any problems with it.

If you want to use this adapter first of all you need to download it from Codeplex, install it in your BizTalk 2009 server and manually register Biztalk.Adapter.ScheduledTaskProperties.dll and Microsoft.BizTalk.Scheduler.dll assemblies in the GAC

Once the installation is done add it to your list of adapters in the BizTalk Server 2009 Administration Console:


After this brief process the adapter is ready to use in your receive locations


Configuration is pretty straight forward and highly intuitive, first you nee to name your schedule in a descriptive manner


Next you are going to define the schedule options for your task, this include:







and Monthly


Finally, and this is where the strength of the adapter lies, you will need to define which provider de adapter is going to use to obtain the data to feed to the receive location.

To define the provider you click the Task tab and then the Find Task button


In the Assembly Qualified Type Name you click in the Browse button


and in the file window you browse to the location of your Scheduled Adapter installation folder, for example “C:\Program Files (x86)\Biztalk ScheduledTask Adapter” and chose ScheduledTaskAdapter.TaskComponents.dll


Now the Assembly Qualified Type Name is populated with four highlighted options


FileStream. Configure this to define an XML file to be published in the BizTalk Message Box.


HttpDownload. If your file resides in a web server this is the provider you should use.


SQLStream. When your data is stored in a SQL Server database this is the adapter you should use.


XmlStream. This adapter allows you to define the Xml file within the receive location configuration so it could be updateable by the BizTalk administrator or operator.



Once all these steps are finalized you only need to enable the receive location and the schedule start to run with the configuration defined for it.

The BizTalk Scheduled Task Adapter is a very simple, stable and useful adapter for a quick way to schedule the publishing of messages to BizTalk Message Box. It does not however provides much of the complexity of the Windows 2008 Task Scheduler. If you want a scheduler highly integrated with BizTalk as another adapter Greg’s is the one for the task!


Entry filed under: BizTalk. Tags: , , , .

Microsoft Security Bulletin for September 2011 Update Use DebugView to inspect variables and objects inside your BizTalk orchestrations

3 Comments Add your own

  • […] September I wrote about the BizTalk Schedule Task Adapter and how easy to use and powerful it […]

  • 2. Pure GCE REview  |  April 17, 2013 at 12:51 pm

    I have read so many content about the blogger lovers however this article is truly a nice article, keep it up.

  • 3. Valium  |  May 2, 2013 at 8:41 am

    Your post features confirmed helpful to me personally. It’s very educational and you are naturally very well-informed
    of this type. You have opened my sight in
    order to different opinion of this subject along with intriquing, notable and solid content material.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

September 2011
« Aug   Oct »


%d bloggers like this: