■
Note
If you are interested in examining some additional workflow activities, a good starting point is
http://
wf.netfx3.com
. Here, you can download a good number of additional activities that extend those that ship with
the product.
Despite the number of auxiliary activities that can be obtained from the online WF community,
it is also entirely possible (and in some cases necessary) to build a custom activity from scratch. As
you might guess, Visual Studio 2008 provides a Workflow Activity Library project template for this
very purpose. If you select this project type, you will be given a designer surface to create your cus-
tom activity, using an identical approach to building a workflow itself (add new activities, connect
them to code, etc.).
Much like the process of building a custom Windows Forms control, a custom activity can be
adorned with numerous .NET attributes that control how the component should integrate within
the IDE—for example, which bitmap image to display on the toolbar, which configuration dialogs
(if any) to display when a property is configured within the Properties window, and so forth.
C H A P T E R 2 6
Do'stlaringiz bilan baham: |