Friday, April 2, 2010

SPD WF Action Wait until by default 5 minutes

As you may have already discovered the action like "Wait until"\"Pause" don't work precisely as you setup them. Even you setup to wait only one minute, workflow by default will resume itself after 5-6 minutes.
Why is that?
It is because of the job-workflow schedule on the farm and by default this job runs every 5 minutes to brush up the running workflows.
So, if you are not satisfied with such behavior you can change it!

This is the simple stsadm command to check the current schedule:
stsadm -o getproperty -pn job-workflow -url http://test/apps

And this the command to save your time while you waiting for wf awaking:
stsadm -o setproperty -pn job-workflow -pv "every 2 minutes between 0 and 59" -url http://test/apps