locked
Wf4.0 Scheduling RRS feed

  • General discussion

  • hi ,can any one have an idiea on how to Schedule a Workflow to execute at specified time in wf4.0. Like Workflow Scheduling Service in 3.5

    regards,

    rajendra.

    Tuesday, March 30, 2010 6:30 AM

All replies

  • Hi, Rajendra,

    Could you please explain more about your requirement? What do you mean by "execute at specified time"? An simple example would help.

    Thanks,

    Congyu 

    Wednesday, April 7, 2010 3:58 AM
  • hi Congyu,

    in my project we running worflow through WorkflowApplication object,and calling "Run()" Method,

    my requirement is that to run a workflow at specified time like , 09/04/2010 at 5PM. i.e 9th April 5 PM

    In 3.5 we had Schedule Method  ,WorkflowSchedulerService. . :: . Schedule Method (WaitCallback, Guid, DateTime, Guid)

    url:http://msdn.microsoft.com/en-us/library/ms609708.aspx

    if you can suggest me to achieve the same thing in wf4.0 it would be helpful for me.

    regards,

    rajendra

    Wednesday, April 7, 2010 8:40 AM
  • Some ideas

    a) run it in sequence with a Delay activity set for the appropriate timeout
    b) hook up to the Windows task scheduler API:

    http://msdn.microsoft.com/en-us/library/aa383608(v=VS.85).aspx

    Tim

    Friday, April 9, 2010 8:32 PM
  • hi tilvell,

    thanks for the idea to use windows task scheduler , i will try this.

    regards,

    rajendra.

    Friday, April 16, 2010 6:58 AM
  • Also check out the new Absolute Delay activity sample:

    http://msdn.microsoft.com/en-us/library/ff522352.aspx

     

    This activity will delay until a certain datetime, rather than delaying for a given timespan.

    Thursday, April 29, 2010 7:40 PM
  • Thanks Pat, I didn't know that existed.

    Tim

    Thursday, April 29, 2010 9:50 PM
  • Thank You Pat,I Came to know a New thing from you,

    regards,

    rajendra

    Monday, May 3, 2010 1:33 PM
  • A bunch of new samples rolled out out last week. I don't have a list of which ones are new, but if you browse through the TOC for samples here, they are sprinkled throughout.

    Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

     

    Monday, May 3, 2010 2:43 PM