Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you schedule execution of a Windows Workflow?

I'd like to move my scheduled tasks into workflows so I can better monitor their execution. Currently I'm using a Window's scheduled task to call a web service that starts the process. Is there a facility that you use to schedule execution of a sequence so that it occurs every N minutes?

My optimal solution would:

  • Easy to configure
  • Provide useful feedback on errors
  • Be 'fire and forget'

PS - Trying out AppFabric for Windows Server if that adds any options.

like image 250
James White Avatar asked Aug 11 '10 15:08

James White


People also ask

How do I schedule a process in Windows?

Navigate the following: Task Scheduler Library > New Folder (Testing), then click on "Create Basic Task". Provide the Task Name such as "Open Web browser" and click next. Choose when would you like your task to start and click next. Set the Start date and time of the task and click Next.


1 Answers

The most straightforward way I know of would be to make an executable for each workflow (could be console or windows app), and have it host the workflow through code.

This way you can continue to use scheduled tasks to manage the tasks, the main issue is feedback/monitoring the process. For this you could output to console, write to the event log, or even have a more advanced visualisation with a windows app - although you'd have to write this yourself (or google for something!). This MS Workflow Monitoring sample might be of interest, haven't used it myself.

Similar deal with errors, although writing to the event log would be the normal course of action in this case.

I'm not aware of any other hosts for WF, aside from things like Dynamics CRM, but that won't help you with what you're trying to do.

like image 142
Grant Crofton Avatar answered Nov 21 '22 08:11

Grant Crofton