473,651 Members | 2,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 WorkflowSchedul erService 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 7177


"Jonas Knaus" <jk****@hotmail .comwrote in message
news:eW******** ******@TK2MSFTN GP02.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 WorkflowSchedul erService 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******** ******@TK2MSFTN GP02.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 WorkflowSchedul erService 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
1408
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 run at a certain time, it never even starts. There are entries in the event logs indicating why it might have failed. To add to the puzzle, if you schedule a batch file that calls the application, it will start every time. The
2
318
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 input many task(start time, stop time and action(call which method)) at the same time, just like a table. When the current
1
1036
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 would get relaunched and my code (static) gets to run again. I can put this in a batch file and have it scheduled to run: "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://MySite/website/index.aspx
14
1858
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
1981
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. I previously did this with a sleep at the first row of the source code, but this makes the process visible in the task manager's processes tab during the sleep (before the "real application" is actually running), and I dont want that.
0
1231
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 applications are build to check if a triggerfile is available, otherwise the procedure is canceled. Now to avoid having no results, I want to find a solution to start all 6 application in 1 "big" application and schedule it every 30 minutes.
3
1900
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 type is displayed on is divided into 15 minutes time intervals
0
8349
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8695
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8576
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.