... by visiting the sites above, please send them to Microsoft
Press via e-mail to
mspinput @microsoft. com
Or via postal mail to
Microsoft Press
Attn: Microsoft Windows Workflow Foundation Step by ... from you!
Part I
Introducing Windows Workflow
Foundation (WF)
In this part:
Chapter 1: Introducing Microsoft Windows Workflow Foundation . . . . . . 3
Chapter...
... . . . . . . . . xv
Part I Introducing Windows Workflow Foundation (WF)
1 Introducing Microsoft Windows Workflow Foundation. . . . . . . . . . . . . . 3
Workflow Concepts and Principles . . . ... this book:
■ Microsoft Windows XP with Service Pack 2, Microsoft Windows Server 20 03 with
Service Pack 1, or Microsoft Windows Vista.
■ Microsoft Visual Studio 2005 S...
... terminated).
workflowRuntime.WorkflowIdled += new
EventHandler<WorkflowEventArgs>(workflowIdled);
workflowRuntime.WorkflowCompleted += new
EventHandler<WorkflowCompletedEventArgs>(workflowCompleted); ...
Application Code
Workflow Environment
WorkflowRuntime
WorkflowRuntime
Workflow Instance
AppDomain
64 Part I Introducing Windows Workflow Foundation (WF)
and adequa...
... <%WINDIR%>\
Microsoft. NET\Framework\v3.0 \Windows Workflow Foundation\ SQL\EN, where
<%WINDIR%> is your Windows directory (typically, C: \Windows) . From SQL Server
Management Studio Express’s ... Chapter 3 to house our new workflow.
(See the section in Chapter 3 entitled “Adding a sequential workflow project to the
WorkflowHost solution”.) Name this workflow...
...
WorkflowInstance instance =
workflowRuntime.CreateWorkflow(typeof(IdledWorkflow .Workflow1 ));
// Start the workflow instance.
instance.Start();
13. Compile the solution by pressing F6. Correct any ... Introducing Windows Workflow Foundation (WF)
This code disables the Start Workflow button, enables the Unload Workflow button,
and then starts a new workflow instance....
... “Hello from Workflow1 !” to “Hello from Workflow2 !” Rename the workflow source
file from workflow1 .cs to workflow2 .cs to avoid confusing the workflows later.
6. We want the first workflow to ... RaiseMVDataUpdateEvent()
{
if (_workflowRuntime == null)
_workflowRuntime = new WorkflowRuntime();
// Load persisted workflow instances.
_workflowRuntime.GetWorkflow(_instanc...
... event handler for
WorkflowCompleted:
if (e.WorkflowDefinition is Workflow1 .Workflow1 )
Console.WriteLine(" ;Workflow 1 completed.");
else
Console.WriteLine(" ;Workflow 2 completed."); ...
Program.cs:
Console.WriteLine("Waiting for workflow completion.");
14. Add this code following the line of code you just located:
// Create the workflow instance....
... for and open the
Workflow1 workflow for editing in the visual workflow designer. Select Workflow1 .cs in
Solution Explorer, and click the View Designer button. The visual workflow designer
appears, ... for workflow completion.");
18. Add this code following the line of code you just located to create a workflow instance:
// Create the workflow instance.
WorkflowInstance...
... 38 0 Part III Workflow Processing
Note To learn a bit more about wfc.exe, see msdn2 .microsoft. com/en-us/library/
ms 734 733 .aspx.
Creating a new workflow application with ... file (steps 3 and 4 of the preceding section).
3. Add the following XML to the Workflow1 .xml file and then save it:
<SequentialWorkflowActivity x:Name=" ;Workflow1 " x:Class=" ;Workflow1 &quo...