Partager via


Task 3: Create the Custom Activity Sequential Workflow

Download sample

In this task, you create a basic sequential workflow that does not contain any activities. You build upon this workflow as the tutorial progresses by adding the necessary activities and logic to communicate back to the host application.

Note

Although you are encouraged to follow the exercises in a linear manner, it is not required. You can start this exercise by opening the sample project and proceeding to the steps in the following section.

To create the SimpleExpenseReport sequential workflow project

  1. In Solution Explorer, right-click the CustomActivity solution, click Add and New Project. Select Workflow under your language of choice and select Sequential Workflow Library. Name the project WebTearWorkflow.

  2. Add a reference to the WebTearWorkflow project to the CustomActivity project.

  3. Rename Workflow1 to WebTearWorkflow and confirm that references should be updated.

To define the sequential workflow

  1. Double-click the WebTearWorkflow file to open it in the designer. Change the name of the workflow to WebTearWorkflow.

Compiling the Code

For more information about compiling your code, see Compiling the Code.

In Exercise 2: Create the Custom Activity and Workflow, you create the custom activity and add it to the workflow that you created in this task.

See Also

Reference

SequentialWorkflowActivity
CanModifyActivities

Other Resources

Exercise 2: Create the Custom Activity and Workflow
Tutorial: Create a Sequential Workflow
Simple Sequential Workflow

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