{"id":99,"date":"2010-10-30T18:01:19","date_gmt":"2010-10-30T17:01:19","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=99"},"modified":"2010-11-03T13:12:59","modified_gmt":"2010-11-03T12:12:59","slug":"delay-activity-sharepoint-wf","status":"publish","type":"post","link":"https:\/\/www.stuartroberts.net\/index.php\/2010\/10\/30\/delay-activity-sharepoint-wf\/","title":{"rendered":"Delay Activity in SharePoint Workflow"},"content":{"rendered":"<p>Trying to use the Delay Activity workflow activity in a SharePoint workflow and having problems with it firing?<\/p>\n<p>For SharePoint 2010, the delay activity will only be checked if it has completed the configured delay every time the Workflow timer job itself fires.  By default this is set to run every five minutes. So, if like me you are trying to setup a delay of one minute and were trying to figure out why it wasn&#8217;t firing in time, this might help to explain why.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2010\/10\/Workflow-Timer-Job.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-101\" title=\"Workflow Timer Job Setting\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2010\/10\/Workflow-Timer-Job-300x127.jpg\" alt=\"Workflow Timer Job Setting\" width=\"300\" height=\"127\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2010\/10\/Workflow-Timer-Job-300x127.jpg 300w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2010\/10\/Workflow-Timer-Job.jpg 848w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<span style=\"font-size: 0.7em;\"><strong>Workflow Timer Job Setting<\/strong><\/span><\/p>\n<p>Some other posts mention running the stsadm command:<br \/>\n<!--more--><br \/>\n<em>stsadm -o getproperty -propertyname \u201cjob-workflow\u201d -url http:\/\/localhost<\/em><\/p>\n<p>This lets you check if the workflow job is configured.  I have the feeling this is only relevant for SharePoint 2007 in combination with this <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=6096ce0f-d21e-47ac-afe2-d4e1c2fce670&amp;displaylang=en\">hotfix<\/a>.<\/p>\n<p>In my environment, using 2010, I ran the above command and got the <em>Property Exits=&#8221;No&#8221; <\/em>message, which indicates that it&#8217;s not been configured.  There&#8217;s no need to set this property, as the delay activity does eventually fire once the Workflow timer job kicks in.<\/p>\n<p>If you need the delay activity to fire more frequently than the default five minutes, you&#8217;ll need to update the schedule for the Workflow timer job to run more frequently.<\/p>\n<p>If you&#8217;re trying to debug a workflow or custom activity and are using the Delay activity you will need to connect to the w3wp (for the web application running the workflow) and owstimer processes. Otherwise, you&#8217;ll only be able to debug the workflow as it initiates and not for the steps you have configured after the delay.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to use the Delay Activity workflow activity in a SharePoint workflow and having problems with it firing? For SharePoint 2010, the delay activity will only be checked if it has completed the configured delay every time the Workflow timer &hellip; <a href=\"https:\/\/www.stuartroberts.net\/index.php\/2010\/10\/30\/delay-activity-sharepoint-wf\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[3,82],"tags":[81,6],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/plx2I-1B","_links":{"self":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":14,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}