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.
c3b40a06-691f-47c2-8fa7-a2adfbb7fa54|1|5.0
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.
5be85a52-45df-4f45-8cc2-eb01f8023dca|2|5.0