Activity Library
This section contains samples that demonstrate advanced custom activities in Windows Workflow Foundation (WF).
In This Section
SendMail Custom Activity
Demonstrates how to create a custom activity that derives from AsyncCodeActivity to send mail using SMTP for use within a workflow application.
Throttled Parallel ForEach
Demonstrates how the ThrottleParallelForEach
activity is similar to the ParallelForEach<T> activity with the one exception that it allows setting a concurrency factor to restrict the number of simultaneous branches to execute.
Database Access Activities
Demonstrates how to create activities that allow accessing databases to retrieve or modify information and use ADO.NET to access the database.
Externalized Policy Activity in .NET Framework 4.5
Demonstrates how the ExternalizedPolicy4 activity allows executing existing Windows Workflow Foundation in .NET Framework 3.5 (WF 3.5) RuleSet objects in Windows Workflow Foundation in .NET Framework 4.6.1 (WF 4.5) directly by using the rules engine that is shipped in WF 3.5.
Non-Generic ForEach
Demonstrates how to create a non-generic version of the ForEach<T> activity.
Non-Generic ParallelForEach
Demonstrates how to create a non-generic version of the ParallelForEach<T> activity.
Get WorkflowInstanceId
Demonstrates how to use the custom activity, GetWorkflowInstanceId
, to return the workflow instance ID.