Using the Activity Designer
The Activity Designer enables you to create your own custom activities.
Creating a Custom Activity
Follow these steps to create a custom activity using the Activity Designer:
On the Project menu, click Add Activity.
Select the Activity or Activity (with code separation) template.
Use the Activity template to create an activity with the activity definition and the user code in same code file.
Use the Activity (with code separation) template to create an activity with the activity definition expressed as workflow markup and the user code in a separate code file.
- Use the Activity template to create an activity with the activity definition and the user code in same code file.
Type an activity name or keep the default name, and then click Add.
You can also create a set of custom activities by creating a new project of type Workflow Activity Library. For more information about this project type, see How to: Create a Workflow Activity Library.
Configuring an Activity
While the Activity Designer is active, you can use the property browser to configure the properties listed in the following table.
Name of the activity.
Base class that the activity derives from. The default base class is SequenceActivity. In the Properties window, click the Base Class ellipses […] to select another base class in the Browse and Select a .NET Type Dialog Box.
User-defined description of the activity.
Set to True by default to enable activity execution and validation. Set to False to disable activity execution and validation. For information about activity execution and validation, see Developing Workflow Activities.
Adding Child Activities
You can drag child activities from the Toolbox to the activity that you are designing. You can then configure each child activity using the property browser.
Copyright © 2007 by Microsoft Corporation. All rights reserved.