Compartilhar via


Completed Sequential Workflow Tutorial

Download sample

Note

The project files that are listed here contain the complete source code for the Tutorial: Create a Sequential Workflow tutorial.

In this tutorial, you learn how to create a sequential workflow using Windows Workflow Foundation. After you create the hosting infrastructure that is needed for the sequential workflow, the tutorial proceeds to demonstrate various aspects related to creating sequential workflows.

Tutorial Overview

In Exercise 2: Create the Expense Report Service Task 1: Define the Workflow Parameters, properties are added to the sequential workflow. When the host application creates an instance of the sequential workflow, it passes a Dictionary-based collection of values as parameters. The keys within this collection correspond directly with the properties that are defined in the workflow. In this task, the Amount and Result properties are defined and the host application is modified accordingly to use these properties.

Exercise 2: Create the Expense Report Service Task 2: Define the IExpenseReportService Interface demonstrates how to correctly define an interface that can be used to perform communication from the host application and the sequential workflow. The interface in this task is defined by the sequential workflow and implemented by the host application. The remaining tasks in Exercise 3: Create the Simple Expense Report Sequential Workflow, Task 1: Create the CallExternalMethod Activities and Task 2: Create the HandleExternalEvent Activities, use the activities in Windows Workflow Foundation to enable communication between the host application and the sequential workflow through the defined IExpenseReportService interface.

See Also

Other Resources

Simple Sequential Workflow Sample
Sequential Workflow with Parameters Sample

Copyright © 2007 by Microsoft Corporation. All rights reserved.
Last Published: 2010-03-04