Windows Workflow Foundation (WF) includes a default set of activities that provide functionality for control flow, conditions, event handling, state management, and communicating with applications and services. When designing workflows, you can use the system-provided activities that are provided by the Windows 工作流程設計工具, or you can create your own custom activities.
The following table lists the Windows Workflow Foundation framework out-of-box activity set. Many, but not all, of these activities are represented by activity designers that can be accessed from the Toolbox of the 工作流程設計工具. To create an activity, drag its designer from the Toolbox and drop it on the design surface.
| Activity | Description |
|---|---|
Used with the HandleExternalEventActivity activity for input and output communications with a local service. 如需詳細資訊,請參閱 Using the CallExternalMethodActivity Activity. |
|
Used to contain cleanup logic for a composite activity canceled before all the composite activity's children are finished executing. 如需詳細資訊,請參閱 Using the CancellationHandlerActivity Activity. |
|
Enables you to add Visual Basic or C# code to your workflow. 如需詳細資訊,請參閱 Using the CodeActivity Activity. |
|
A compensatable version of SequenceActivity. 如需詳細資訊,請參閱 Using the CompensatableSequenceActivity Activity. |
|
A compensatable version of TransactionScopeActivity. 如需詳細資訊,請參閱 Using the CompensatableTransactionScopeActivity Activity. |
|
Enables you to call code to undo or to compensate for operations already performed by the workflow when an error occurs. 如需詳細資訊,請參閱 Using the CompensateActivity Activity. |
|
A wrapper for one or more activities that perform compensation for a completed TransactionScopeActivity activity 如需詳細資訊,請參閱 Using the CompensationHandlerActivity Activity. |
|
Executes child activities based on a condition that applies to the ConditionedActivityGroup activity itself and based on conditions that apply separately to each child. 如需詳細資訊,請參閱 Using the ConditionedActivityGroup Activity. |
|
Enables you to build delays in your workflow that are based on a time-out interval. 如需詳細資訊,請參閱 Using the DelayActivity Activity. |
|
Wraps one or more activities that are executed when a specified event occurs. 如需詳細資訊,請參閱 Using the EventDrivenActivity Activity. |
|
Provides a framework for associating events with an activity. 如需詳細資訊,請參閱 Using the EventHandlersActivity Activity. |
|
Executes its main child activity concurrently with an EventHandlersActivity. 如需詳細資訊,請參閱 Using the EventHandlingScopeActivity Activity. |
|
Used to handle an exception of a type that you specify. 如需詳細資訊,請參閱 Using the FaultHandlerActivity Activity. |
|
Represents a composite activity that has an ordered list of child activities of type FaultHandlerActivity. 如需詳細資訊,請參閱 Using the FaultHandlersActivity Activity. |
|
Used in conjunction with the CallExternalMethodActivity activity for input and output communications with a local service. 如需詳細資訊,請參閱 Using the HandleExternalEventActivity Activity. |
|
Tests a condition on each branch and performs activities on the first branch for which the condition equals true. 如需詳細資訊,請參閱 Using the IfElseActivity Activity. |
|
Represents a branch of an IfElseActivity. 如需詳細資訊,請參閱 Using the IfElseBranchActivity Activity. |
|
Enables your workflow to invoke a Web service. 如需詳細資訊,請參閱 Using the InvokeWebServiceActivity Activity. |
|
Enables your workflow to invoke another workflow. 如需詳細資訊,請參閱 Using the InvokeWorkflowActivity Activity. |
|
A composite activity that contains only EventDrivenActivity child activities. 如需詳細資訊,請參閱 Using the ListenActivity Activity. |
|
Provides a way to schedule two or more child SequenceActivity activity branches for processing at the same time. 如需詳細資訊,請參閱 Using the ParallelActivity Activity. |
|
Use to represent a collection of rules. A rule consists of conditions and resulting actions. 如需詳細資訊,請參閱 Using the PolicyActivity Activity. |
|
Creates multiple instances of a single child activity. 如需詳細資訊,請參閱 Using the ReplicatorActivity Activity. |
|
Provides a simple way to link multiple activities together for sequential execution. 如需詳細資訊,請參閱 Using the SequenceActivity Activity. |
|
Specifies a transition to a new state. 如需詳細資訊,請參閱 Using the SetStateActivity Activity. |
|
Represents a state in a state machine workflow. 如需詳細資訊,請參閱 Using the StateActivity Activity. |
|
Used in a StateActivity activity as a container for child activities that are executed when leaving the StateActivity activity. 如需詳細資訊,請參閱 Using the StateFinalizationActivity Activity. |
|
Used in a StateActivity activity as a container for child activities that are executed when entering the StateActivity activity. 如需詳細資訊,請參閱 Using the StateInitializationActivity Activity. |
|
Suspends the operation of your workflow to enable intervention in the event of some error condition that requires special attention. 如需詳細資訊,請參閱 Using the SuspendActivity Activity. |
|
Executes contained activities sequentially in a synchronized domain. 如需詳細資訊,請參閱 Using the SynchronizationScopeActivity Activity. |
|
Enables you to immediately end the operation of your workflow in the event of an error condition. 如需詳細資訊,請參閱 Using the TerminateActivity Activity. |
|
Enables you to capture business exceptions thrown as part of the process metadata for a workflow. 如需詳細資訊,請參閱 Using the ThrowActivity Activity. |
|
Provides a framework for transactions and exception handling. For more information, see Using the TransactionScopeActivity Activity. |
|
Enables you to model the occurrence of a Web service fault. 如需詳細資訊,請參閱 Using the WebServiceFaultActivity Activity. |
|
Receives data from a Web service. 如需詳細資訊,請參閱 Using the WebServiceInputActivity Activity. |
|
Responds to a Web service request made to a workflow. 如需詳細資訊,請參閱 Using the WebServiceOutputActivity Activity. |
|
Enables your workflow to loop until a condition is met. 如需詳細資訊,請參閱 Using the WhileActivity Activity. |
如需詳細資訊 how to create custom activities, see Developing Custom Activities and Using the Legacy Activity Designer.
In This Section
- Activity Views (Legacy)
Describes the different design views of activities.
- How to: Add Activities to the Toolbox (Legacy)
Shows how to add activities to the toolbox.
- How to: Create a Declarative Rule Condition (Legacy)
Shows the steps to create a declarative rule condition.
- How to: Create a PolicyActivity Rule Set (Legacy)
Shows the steps to create a PolicyActivity rule set.
- How to: Implement a Windows Communication Foundation Contract Operation (Legacy)
Shows the steps to implement a WCF contract operation.
- How to: Invoke a Windows Communication Foundation Contract Operation (Legacy)
Shows the steps to invoke a WCF contract operation.
另請參閱
其他資源
Windows Workflow Foundation Activities
Developing Workflows
Developing Workflow Activities