i:0#.w|Ali.Mazaheri

SharePoint, SharePoint and SharePoint!

Using Delay activity in WSS 3.0 custom Workflows (Lessons learned)

Using Delay activity in WSS 3.0 custom Workflows (Lessons learned)

  • Comments 3

WF's DelayActivity is best suited for scenarios such as sending Reminders or if you want to force your WF to dehydrate for a batch update on Item's column(s), as you may know a .NET 3.0 hotfix or SP1 needs to be installed so that the Delay activity works.

Scenario:

You use DelayActivity and set the TimeoutDuration property to 5 minutes, after running the WF you notice that the Delay activity still does not work. In WSS 3.0, Delay activity gets triggered by a timer job (Job-workflow) which by defeat runs every 15 minutes and that explains why your WF instance never wakes up by Delay activity. Fortunately you can modify the setting for this timer job as you do not want to wait for 15 minutes while debugging your code! In order to change the default setting you need to run the following command: 

STSADM -O SetProperty -pn "Job-Workflow" -pv "Every 5 minutes between 0 and 59" -url [url of the Web application]

Note.

Make sure that you do not change this setting in Production environment as it may have some performance hit and use the above command only for debugging purposes in your Dev environment.

  • Hi Ali,

    On my machine I have Framework 3.0 SP1 installed, and 3.5 which got installed with VS 2008.

    I've decided to build a dummy workflow with:

    log activity

    delay activity -- 5 minutes

    log activity

    Still my workflow never gets awake. I've finally decided to modify timer job's setting as indicated, yet nothing happened.

    Thank you,

    Mohammad

  • Mohammad,

    Are you able to fix your issue?

    Thank you

    Asif

  • hi,

    i modify timer job, but delay doesn't work..

    can you help me asif?

    thank you,

    salvatore correra

Page 1 of 1 (3 items)
Leave a Comment
  • Please add 2 and 1 and type the answer here:
  • Post