Export (0) Print
Expand All

Workflow Activities for SharePoint Foundation

Last modified: April 16, 2010

Applies to: SharePoint Foundation 2010

In this article
Windows Workflow Foundation Activities Supported in SharePoint Workflows
Activities for Use with the Visual Studio Designer for Windows Workflow Foundation
Declarative, No-Code Workflow Activities

The Visual Studio Designer includes predefined activities you can use to create Microsoft SharePoint Foundation 2010 workflows. In addition, the Microsoft.SharePoint.WorkflowActions namespace, included with SharePoint Foundation, includes numerous workflow activities you can use in your SharePoint Foundation workflows. These activities are optimized to simplify and streamline developing workflows for use in SharePoint Foundation. This includes workflow activities designed for use in the Visual Studio Designer, as well as workflow activities designed for use in a rules-based, code-free workflow editor such as Microsoft SharePoint Designer 2007.

Because not all the activities available in the Visual Studio Designer are relevant in the context of SharePoint sites, SharePoint Foundation supports a subset of the available activities. These include the following:

  • Code   Use to add Microsoft Visual Basic or Microsoft Visual C# code to your workflow.

  • ConditionedActivityGroup   Use to perform a set of activities conditionally, based on criteria specific to each activity, until a condition is met for the ConditionedActivityGroup activity as a whole.

  • Sequence   Use to execute an ordered set of child activities.

  • Replicator   Use to create multiple instances of a single child activity.

For more information about these activities, visit the Windows Workflow Foundation Developer Center.

The following workflow activities have been specifically designed to be used in workflows created using the Visual Studio Designer. These activities can help you create workflows in these main areas:

  • Creating, updating, completing, and deleting SharePoint tasks

  • Detecting events on the list item on which the workflow instance is running

  • Enabling workflow modifications within specific scopes, to allow users to modify workflows that are in progress

CompleteTask

CreateTask

CreateTaskWithContentType

DeleteTask

EnableWorkflowModification

InitializeWorkflow

LogToHistoryListActivity

OnTaskChanged

OnTaskCreated

OnTaskDeleted

OnWorkflowActivated

OnWorkflowItemChanged

OnWorkflowItemDeleted

OnWorkflowModified

RollbackTask

SendEmail

SetState

SharePointSequentialWorkflowActivity

The following workflow activities are specifically designed for use in a declarative, code-free workflow, for example, in a workflow you might create by using a rules-based, code-free workflow editor such as Microsoft Office SharePoint Designer 2007. As a result, the workflow activity might not include certain functionality, such as registering for workflow events, that might be used in compiled workflow assemblies that are created by using the Visual Studio Designer.

The Visual Studio Designer does not support the following workflow activities:

AddArrayToArrayListActivity

AddTimeToDateActivity

AddToArrayListActivity

AddToHashtableActivity

ApplyActivation

BuildStringActivity

CheckInItemActivity

CheckOutItemActivity

ClearArrayListActivity

CollectDataTask

ConvertActivity

CopyItemActivity

CreateItemActivity

CurrentDateActivity

DelayForActivity

DelayUntilActivity

DeleteItemActivity

EmailActivity

FindActivity

FindValueActivity

GroupAssignedTask

Helper

LookupActivity

MathActivity

SetFieldActivity

SetModerationStatusActivity

SetTimeFieldActivity

SetVariableActivity

TodoItemTask

UndoCheckOutItemActivity

UpdateItemActivity

UpdateTask

WaitForActivity

Show:
© 2014 Microsoft