Daniel Vaughan

.NET Adventures

Dispelling the Single Workflow Runtime Fallacy

clock May 18, 2008 10:13 by author Daniel Vaughan

Like me, you may have read in various books and articles that there exists a restriction of one WorkflowRuntime instance for each App Domain. This is, in fact, not true. In an early beta release of WF such a restriction existed, and this fact has been perpetuated even though the restriction has long since been removed.

The following code sample is a simple demonstration to show that there is no problem creating multiple WorkflowRuntime instances. 

The Workflow1 class contains a code activity that writes a message to console and a delay activity that pauses for five seconds.

 

And the result:

 

 

Download the sample code: MultiRuntime.zip (27.55 kb)

 

 

Thanks go out to my learned colleague, Jeff Brokenshire, who brought it to my attention and pointed me to this blog post.



Model Driven Development: An introduction to Windows Workflow Foundation

clock March 31, 2008 10:54 by author Daniel Vaughan

 WF Overview

Today I gave the first in a series of presentations on Workflow Foundation (at DEEWR).

Agenda from the presentation:

  •  
    • WF Overview
    • Activities
    • Services
    • Sequential Workflows
    • Rules
    • State Machine Workflows
    • Persistence
    • Workflow Tracking

The slides and demo code can be downloaded here (1,015.05 kb)
 

Andrew Coates from Microsoft was kind enough to provide me with trial software handouts for the event. Thanks Andrew.

 



About the author

Daniel VaughanDaniel Vaughan is a software developer with a decade of commercial experience across a wide range of industries including e-commerce, multimedia, and finance. While originally from Australia and the UK, Daniel is currently based in Geneva Switzerland; working with WPF, WCF, and WF within the finance industry. In his spare time Daniel likes to spend time concocting novel ideas, such as employing neural networks to predict user navigation behaviour in WPF applications, and a grid computing framework for Silverlight. Daniel is also the creator of a number of open-source projects including Calcium, and Clog. E-mail me Send mail

 

Microsoft MVP logo Disciple
CodeProject MVP
WPF and Silverlight Insiders

 

 

RecentComments

Comment RSS

Sign in