Compartilhar via


Site Workflows

Applies to: SharePoint Foundation 2010

Site workflows are a type of workflow that is independent of a list item. In Windows SharePoint Services 3.0 each workflow had to have an association with a list item so that it would have a context to work in. SharePoint Foundation 2010 adds site workflows offer a workflow designer the ability to create a workflow that can execute in different contexts.

Creating a Site Workflow in Visual Studio

Normally, site workflows are created in SharePoint Designer. When creating a new workflow, the user simply chooses the option to make it a Site Workflow. However, in Visual Studio, there is no option to do that through the user interface.

In order to designate a workflow activity as a Site Workflow, the developer needs to make the following changes to the Workflow.xml file:

<MetaData>
<AssociationCategories>Site</AssociationCategories>
</MetaData>