Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This topic applies to Windows Workflow Foundation 4 (WF4).
This section contains samples that demonstrate advanced custom activities in Windows Workflow Foundation (WF).
In This Section
- Policy Activity in .NET Framework 4
Demonstrates how the Policy4 activity allows Windows Workflow Foundation in .NET Framework version 3.5 (WF 3.5) RuleSet objects to be used in Windows Workflow Foundationin .NET Framework version 4 (WF 4) directly by using the rules engine that is shipped in WF 3.5.
- Custom Activity to Switch on a Range of Values
Demonstrates how to create a custom activity that extends the use of a Switch.
- LINQ to Objects Activity
Demonstrates how to create an activity to use LINQ to Objects to query elements in a collection.
- LINQ to SQL
Demonstrates how to create an activity to use LINQ to SQL query entities from tables in SQL Server databases.
- Using the InvokePowerShell Activity
Demonstrates how to invoke Windows PowerShell commands using the InvokePowerShell activity.
- RangeEnumeration Activity
Demonstrates how to create a custom activity that iterates over a collection of numbers.
- Regular Expression Activities
Demonstrates how to create a set of activities that expose the regular expression functionality of the System.Text.RegularExpressions namespace.
- 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.
- For Activity
Demonstrates how to build a custom activity that inherits from NativeActivity and use it in a workflow to iterate over a range of values.
- Wait For Input Activity
Demonstrates how to create named bookmarks in a workflow.
- Throttled Parallel ForEach
Demonstrates how theThrottleParallelForEach
activity is similar to the ParallelForEach activity with the one exception that it allows setting a concurrency factor to restrict the number of simultaneous branches to execute.
- Entity Activities
Demonstrates how to use the ADO.NET Entity Framework with Windows Workflow Foundation to simplify data access.
- 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.
- CommentOut Activity
Demonstrates how to write a custom activity that removes other activities from the path of execution, effectively commenting them out.
- Externalized Policy Activity in .NET Framework 4
Demonstrates how the ExternalizedPolicy4 activity allows executing existing Windows Workflow Foundation in .NET Framework version 3.5 (WF 3.5) RuleSet objects in Windows Workflow Foundation in .NET Framework version 4 (WF 4) directly by using the rules engine that is shipped in WF 3.5.
- NoPersistScope Activity
Demonstrates how to manipulate a non-serializable and disposable state within a workflow.
- Non-Generic ForEach
Demonstrates how to create a non-generic version of the ForEach activity.
- Non-Generic ParallelForEach
Demonstrates how to create a non-generic version of the ParallelForEach activity.
- Get WorkflowInstanceId
Demonstrates how to use the custom activity,GetWorkflowInstanceId
, to return the workflow instance ID.
Build Date: 2012-03-02