It has been a while since I didn’t follow carefully all the comments or issues posted on my blog or GitHub regarding BizTalk Scheduled Task Adapter. It was not by lack of interest but instead due to my lack of free time or just because I was focused on other projects or contributions.
Since I recently (7 days ago) publish I new version of the adapter with some further improvements and optimized it to BizTalk Server 2020. And I have a brand new environment that I need to install this adapter. I decided that it was an excellent opportunity and time to read the existing feedback and address, once and for all, all the reported issues or unexpected behaviors:
- Using the Timespan schedule type may trigger unlimited messages;
- Using the Timespan schedule type, if the time is set to past time, the task will not be triggered in certain cases.
- Using the Timespan schedule type, when stopping the receive locations or stop/restart the host instances, you start to get a time drift from the original time set.
What is new?
New schedule capabilities:
- Capability to set DateTime you want to use on the Timespan schedule type: DateTime.Now or DateTime.UtcNow
- By adding this capability to chose between DateTime.Now or DateTime.UtcNow, it will address and solve the issues reported regarding unlimited messages being triggered if you are using a different timezone than UTC.
- The functionality always to trigger the message at 00 seconds and respect the original time set was added again to the Timespan schedule type. The
GetNextActivationTime
method was improved to fix all these unexpected behaviors reported that indeed was a feature by design.
BizTalk Scheduled Task Adapter
The BizTalk Scheduled Task Adapter is an in-process receive adapter that executes a prescribed task on a daily, weekly or monthly schedule. The adapter is configured entirely within BizTalk, all configurations are stored within the SSODB and can be exported and imported via binding files.
The schedule capabilities are similar to those available with the Windows Scheduled Task Service.
Four simple tasks are included:
- XmlStringStreamProvider – generates a BizTalk message from a configured Xml string
- FileStreamProvider – generates a BizTalk message from the contents of a file
- HttpDownload – generates a BizTalk message from data downloaded from a web site
- SQLStreamProvider – generates a BizTalk message from the contents of a SQL Query (similar to the old SQL adapter) – Since version 3.0
Custom tasks can be created. Any .NET class that implements the appropriate interface can be scheduled.
Big thanks to Pedro Almeida, my team member, that took 95% of my work and finalize this version!
Download
You can download this “new” version of the adapter in BizTalk Scheduled Task Adapter from GitHub:
Please feel free to use the adapter, and If you find any problems or bugs, please open an issue on the adapter GitHub site: https://github.com/sandroasp/BizTalk-Scheduled-Task-Adapter and help evolve this community adapter. You can also suggest new features, and I am also open to new ideas.
BizTalk Scheduled Task Adapter 7.0.2 for BizTalk Server 2020
GitHub
Thank you for the update! We are using BR2016, and the update labeling in GitHub for BT2016 is inconsistent.
Drilling down in Releases, the 2016 version is labeler “BizTalk Scheduled Task Adapter v6.0 for BTS2016.zip V7.0 for BTS2016”
It shows updated a few days ago.
Does the 2016 version contain the same updates as the 2020 version?
I removed (as best as I could) v6.x and installed v7.x, and I do not see the UTC choice in the v7.0.0.0 for 2016.
Hi Jim,
I fix the labels on GitHub. The 2016 version doesn’t have the same updates as the 2020 version. I will try to publish these change to 2016 this week
is there a reason that the source isn’t available on GitHub for others to contribute and / or fork to add customizations?
Hi Sandro,
I notice with Schedule Adapter, we don’t have an option to paste the XML template message into XmlStringStreamProvider. Do you think I am missing some steps
Hi Sandro,
I see 2 messages are getting triggered when we select timespan option . tested with interval of 2 minutes and see 2 messages creating.
Anything we can do in the configuration to avoid this?
Hi Sandro,
I am testing 7.0.2 adapter in BizTalk server 2020.
Thanks,
Laxmi
Hello Sandro!
I’m trying to install it in a Win Server 2016 64 bits system, and I’m getting the error message “This app can’t run on your PC. To find a version for your PC, check with the software publisher”.
Any suggestion?, Thanks
Hello Sandro,
I’m using Schedule Task Adapter on Biztalk 2020. It works fine with multi instances. But when I use it with a single instance. It trigger just one when I started host instance and never again.
Is there anything that I missed or any specific configuration?
Thanks
Hi Sandro,
Is it possible to use the schedule adapter to create the following schedule?
Run Daily, Every minute from 4 p.m. to 5 p.m.
Basically, I can’t figure out how to use the Schedule adaptor to establish a service window.
Hi Sandro,
I would like to inquire about the support for running the adapter on multiple instances of the same Host in version 7.0.2 (BTS 2020). I noticed that in the previous version for BTS 2016, this capability was not available, as discussed in the comments of the following blog post.
https://blog.sandro-pereira.com/2015/02/19/biztalk-scheduled-task-adapter-is-now-officially-available-for-biztalk-server-2013-r2/.
At that time, receive location synchronization via a database table was not implemented.
Can you please confirm if this limitation has been addressed in the latest version?
Thanks
For Custom tasks to be configured in Schedule task adapter, it’s mentioned
“Custom tasks can be created. Any .NET class that implements the appropriate interface can be scheduled.”.
What are the interfaces required to be implemented ?