Share via


Activity Library

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.
  • 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.
  • 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.
  • Throttled Parallel ForEach
    Demonstrates how the ThrottleParallelForEach 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.
  • Get WorkflowInstanceId
    Demonstrates how to use the custom activity, GetWorkflowInstanceId, to return the workflow instance ID.

Build Date: 2012-03-02