473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to schedule workflows (e.g. start every day at 2pm)

Hi there

I am very new to the Workflow Foundation and I am wondering if the WF
has built-in scheduling components. I would like to have a workflow that
starts every day at 2pm as an example. Is it possible to host such a
workflow in a windows service and to have a configuration file that can be
used to configure the start time?

Or should I use a general scheudling component (like the one provided
with the OS) to start the workflows at the defined time?

I had a look at the WorkflowSchedulerService class, which provides the
protected method Schedule, but I was not able to use it properly.

It would be great if someone could try to point me into the right
direction!

Thanks a lot!
Jonas

Feb 19 '07 #1
3 7154


"Jonas Knaus" <jk****@hotmail.comwrote in message
news:eW**************@TK2MSFTNGP02.phx.gbl...
Hi there

I am very new to the Workflow Foundation and I am wondering if the WF
has built-in scheduling components. I would like to have a workflow that
starts every day at 2pm as an example. Is it possible to host such a
workflow in a windows service and to have a configuration file that can be
used to configure the start time?

Or should I use a general scheudling component (like the one provided
with the OS) to start the workflows at the defined time?

I had a look at the WorkflowSchedulerService class, which provides
the protected method Schedule, but I was not able to use it properly.

It would be great if someone could try to point me into the right
direction!

If your workflows are short-running then hosting them in a console app that
is invoked by the OS scheduler should work fine. If they are long-running,
or you otherwise want to host them inside a Windows Service, then I would
add a simple WCF service hosted by your windows service, so a scheduled
console app can call into your windows service and kick off the workflows.

David

Feb 19 '07 #2
"Jonas Knaus" <jk****@hotmail.comwrote in message
news:eW**************@TK2MSFTNGP02.phx.gbl...
Hi there

I am very new to the Workflow Foundation and I am wondering if the WF
has built-in scheduling components. I would like to have a workflow that
starts every day at 2pm as an example. Is it possible to host such a
workflow in a windows service and to have a configuration file that can be
used to configure the start time?
Yes, you could host the workflow in a Windows Service but, you have to write
the service. There's nothing like this built in to Windows workflow.
>
Or should I use a general scheudling component (like the one provided
with the OS) to start the workflows at the defined time?
You could do that too but, the Task Scheduler doesn't know anything about
Windows Workflow so you're not going to get things like persistence and
tracking. That means that a workflow that's waiting for an external event
won't survive a system reboot etc, etc.

You could also look at commercial task scheduler products like ours. We're
not shipping Workflow support yet but, we will be soon. I'm sure many other
companies are working on it too. If you would like to be a part of our
Workflow beta, send me an e-mail. If you would like more information about
JAMS, our job scheduler for Windows .NET, see http://www.mvpsi.com
>
I had a look at the WorkflowSchedulerService class, which provides
the protected method Schedule, but I was not able to use it properly.
That's for scheduling threads in a running workflow, not what you're looking
for.
>
It would be great if someone could try to point me into the right
direction!


Feb 19 '07 #3
Thank you a lot for the answers!
Jonas
Feb 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven | last post by:
This seems like a puzzle. We are able to successfully develop and deploy an app using vb.net. The app runs great when you double click on the icon. However, if you try to schedule the app to...
2
by: yindevil | last post by:
HI~ I am coding a program that need to run a method in a schedule when start a program, but i have no idea to make it(how to code it). Can someone help me please? My case: The user can...
1
by: Zeng | last post by:
Hello, I would like to make sure my web server gets hit periodically every 1 hours or so in case aspnet_wp.exe process gets recycled because memory consumption exceeds the setting limit - it...
14
by: C | last post by:
Hi, Does Microsoft have a product that integrates with Visual Studio .NET that can be used to develop Web based Workflows for Business Process scenarios? Thanks.
8
by: Marcus | last post by:
I have this application I have made that I launch when the user logs into Windows XP. I would like to delay the launch of the application so that it starts 1 minute after the user has logged in. ...
0
by: amduke | last post by:
Hello, I'm using the Microsoft Scheduler to schedule 6 access application. Each application is scheduled on a different time starting at 03:00 am and the last one is scheduled 07:30 am. The...
3
by: assgar | last post by:
Hi I am having problem with my loping. I don't know if I have chosen the correct approach. GOAL: I need to insert into a table event types for a specific date range. The calendar the event...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.