<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>James Leong &#124; Web Developer &#187; notes</title>
	<atom:link href="http://james.com.sg/category/notes/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.com.sg</link>
	<description>Blog of a budding (another word for poor) entrepeneur</description>
	<lastBuildDate>Sun, 11 Apr 2010 06:05:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Workflow Foundation (WF)</title>
		<link>http://james.com.sg/2009/02/18/windows-workflow-foundation-wf/</link>
		<comments>http://james.com.sg/2009/02/18/windows-workflow-foundation-wf/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 12:03:15 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://james.com.sg/2009/02/18/windows-workflow-foundation-wf/</guid>
		<description><![CDATA[&#160;

&#160;
Persistence Service
// Persitence parameter values
bool unloadOnIdle = true;
TimeSpan reloadIntevral = new TimeSpan(0, 0, 0, 20, 0);
TimeSpan ownershipDuration = TimeSpan.MaxValue;

SqlWorkflowPersistenceService sqlPersistenceService =
             new SqlWorkflowPersistenceService(connectionString,
             unloadOnIdle, ownershipDuration, reloadIntevral);
Setting up of the database for [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><a href="http://james.com.sg/wp-content/uploads/2009/02/image1.png"><img title="WF Runtime Image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="402" alt="WF Runtime Image" src="http://james.com.sg/wp-content/uploads/2009/02/image-thumb1.png" width="529" border="0"></a></p>
<p>&nbsp;</p>
<p><strong>Persistence Service</strong></p>
<pre>// Persitence parameter values
bool unloadOnIdle = true;
TimeSpan reloadIntevral = new TimeSpan(0, 0, 0, 20, 0);
TimeSpan ownershipDuration = TimeSpan.MaxValue;
</pre>
<pre>SqlWorkflowPersistenceService sqlPersistenceService =
             new SqlWorkflowPersistenceService(connectionString,
             unloadOnIdle, ownershipDuration, reloadIntevral);</pre>
<p>Setting up of the database for the persistence and tracking services</p>
<p><strong>Persistence DB</strong></p>
<p><a href="http://james.com.sg/wp-content/uploads/2009/02/image2.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="406" alt="image" src="http://james.com.sg/wp-content/uploads/2009/02/image-thumb2.png" width="907" border="0"></a> </p>
<p><strong>Tracking DB</strong></p>
<p><a href="http://james.com.sg/wp-content/uploads/2009/02/image3.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="225" alt="image" src="http://james.com.sg/wp-content/uploads/2009/02/image-thumb3.png" width="910" border="0"></a>
<pre>&nbsp;</pre>
<pre><strong><u>Configuration of workflow in App.Config</u></strong></pre>
<pre>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;configuration&gt;
  &lt;configSections&gt;
    &lt;section name="WFR"
             type="System.Workflow.Runtime.Configuration.WorkflowRuntimeSection,
             System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral,
             PublicKeyToken=31bf3856ad364e35"  /&gt;
  &lt;/configSections&gt;
  &lt;WFR Name="BasicHostingExample"&gt;
    &lt;CommonParameters&gt;
     &lt;add name="ConnectionString"
                  value="Initial Catalog= WFTrackingAndPersistence;
                    Data Source=localhost;
                    Integrated Security=SSPI;"  /&gt;
    &lt;/CommonParameters&gt;
    &lt;Services&gt;
      &lt;add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService,
                    System.Workflow.Runtime, Version=3.0.00000.0,
                    Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    UnloadOnIdle="true"
                    LoadIntervalSeconds="10"/&gt;
    &lt;/Services&gt;
  &lt;/WFR&gt;
&lt;/configuration&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://james.com.sg/2009/02/18/windows-workflow-foundation-wf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
