SharePoint Workflows and "Pause Until"
I was just putting together a test workflow for a custom list in SharePoint which uses the "Pause Until" action, to pause the workflow until a certain date is reached and then send me an email. However, even if I set the date to today, the workflow never fired.
A quick Google-search later, I find this post on the SharePoint Designer Team Blog, outlining a hotfix for timed workflows in Windows Workflow Foundation. Downloaded it, installed it, now my workflows fire!
My only problem now is that a new workflow kicks off every time I change an item in my list (which is just fine), but the existing workflows from previous edits don't stop. That's no good to me if I change the date that I want the notification email sent. I'll get a bunch of emails on the old (wrong) dates.
Anyway: If you're working on workflows that need to wait for a duration or until a certain date, then you need this hotfix. Go get it!
Comments
# Kelvin
9/08/2007 8:46 AM
thanks a lot! That's really helpful for our workflow project.
# mabster
9/08/2007 9:17 AM
Glad it helped, Kelvin! Thanks for the feedback!
# Saurabh Kumar Singh
3/10/2008 5:37 AM
Hi,
I am creating a reminder wrokflow using SharePoint Designer, and when i using "Pause Until Date" activity. It doesn't resume and Workflow status does not change from "In Progress".
(i.e it displays "Pausing for 0 minutes" under Workflow History but it doesn't take specified action).
I have created it many times but found same problem.
I have done some googling for that in last some days, and from there I had got a hot fix! KB 932394 and installed it but still I am in same trouble with "Pause Until Date" Activity.
I have also changed "job-workflow" time duration using stsadm command from 5 minutes to 1 minute as below:
stsadm -o setproperty -propertyname "job-workflow" -propertyvalue "every 1 minutes between 0 and 59" -url http://localhostbut found same problem.
What should I do for this?
Please suggest me why "Pause Until Date" doesn't resume and Workflow status does not change from "In Progress" in my workflow.
If anyone have any solution regarding this then please reply me at saurabhsinghmca@gmail.com
Thank you,
Saurabh Kumar Singh
# IZM
8/11/2010 10:24 PM
Hi - did you findf out the solution to the "existing workflows from previous edits don't stop"?
Regards,
IZM
# mabster
9/11/2010 7:19 AM
IZM - I've long since moved on from this particular job, so no, I never did find out. If you're looking at SharePoint workflows today, I'd strongly recommend Nintex Workflow.
# Neha
13/06/2011 7:12 PM
Nice Info. but required more details if want to pause for days
# Prabhas
1/08/2011 7:31 PM
I too have same requrement, I have trigger email based on date including time. How can I do that?
# unknown
7/09/2011 5:43 PM
use the add time to date feature this might help combine with pause until add days or month or year
# Lance
11/02/2012 10:05 PM
The solution for "existing workflows from previous edits don't stop"?
is to check the date again after the pause is over. If the date changed stop the workflow at that time. The fact that it fires a new workflow every time is actually good because changing the values on In-Progress workflow would in-feasible from a declarative workflow and probably from a custom workflow as well. Hope this helps. Thanks,
Lance
# workflows
20/12/2012 10:18 PM
The solution for "existing workflows from previous edits don't stop"?
# Lancer
20/12/2012 10:20 PM
The solution for "existing workflows from previous edits don't stop"?
is to check the date again after the pause is over. If the date changed stop the workflow at that time. The fact that it fires a new workflow every time is actually good because changing the values on In-Progress workflow would in-feasible from a declarative workflow and probably from a custom workflow as well. Hope this helps. Thanks,
Lancer