<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Delay Activity on Matt Thornton</title>
    <link>http://localhost:1313/tags/delay-activity/</link>
    <description>Recent content in Delay Activity on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 03 Oct 2012 12:59:06 +0000</lastBuildDate><atom:link href="http://localhost:1313/tags/delay-activity/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SharePoint 2010 State Machine workflow delayActivity tip</title>
      <link>http://localhost:1313/tech/sharepoint/sharepoint-2010-state-machine-workflow-delayactivity-tip/</link>
      <pubDate>Wed, 03 Oct 2012 12:59:06 +0000</pubDate>
      
      <guid>http://localhost:1313/tech/sharepoint/sharepoint-2010-state-machine-workflow-delayactivity-tip/</guid>
      
        <description>&lt;p&gt;If you&amp;rsquo;re using a delayActivity in your Visual Studio State Machine workflow, you are likely to want to use the InitializeTimeoutDuration handler to set the length of the delay.&lt;/p&gt;
&lt;p&gt;An easy mistake to make is to think you could do the following:&lt;/p&gt;
&lt;pre&gt;private void DelayActivity_InitializeTimeoutDuration(object sender, EventArgs e)
        {
            delayActivity1.TimeoutDuration = new TimeSpan(0, 10, 0);
        }
&lt;/pre&gt;
&lt;p&gt;However, this won&amp;rsquo;t work. This is because SharePoint will intialise a new instance of the delayActivity with the timeoutduration specified as default. To set the TimeoutDuration of your “actual” activity, you should do the following:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 State Machine delay activity (and why it may not fire)</title>
      <link>http://localhost:1313/tech/sharepoint/sharepoint-2010-state-machine-delay-activity-and-why-it-may-not-fire/</link>
      <pubDate>Sun, 23 Sep 2012 21:44:35 +0000</pubDate>
      
      <guid>http://localhost:1313/tech/sharepoint/sharepoint-2010-state-machine-delay-activity-and-why-it-may-not-fire/</guid>
      
        <description>&lt;p&gt;A common problem in designing workflows is how to make the workflow “sleep” for a period whilst users do (or don&amp;rsquo;t do) something. A common scenario is where you wait for some user input, but if you don&amp;rsquo;t get any by a certain time to continue the workflow in a different stream. You achieve this with a delay activity where you specify a timeout in the form of a Timespan.&lt;/p&gt;
&lt;p&gt;The delay activity was broken in SP2007 which was then fixed with a Hotfix. Surprisingly, this remains &lt;em&gt;kind of broken&lt;/em&gt; in SP2010 as well. That is to say, the delay activity never wakes up.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>