Add a workflow association (SharePoint Foundation 2010)
Aplica-se a: SharePoint Foundation 2010
Tópico modificado em: 2016-11-30
You add a workflow by associating it with a list, document library, site content type, or site.
In this article:
Associate a workflow with a list or document library
Associate a workflow with a list or library content type
Associate a workflow with a site content type
Associate a workflow from a feature package with a site
Before you begin
When you add a workflow association, you assign a task list and history list to use with the selected workflow. You can use the default task list, select another existing task list, or create a new one. Workflow participants can find and view their workflow tasks easily by using the My Tasks view of the Tasks list on the Quick Launch of the site collection.
Security Note |
---|
If the tasks for this workflow might reveal sensitive or confidential data that you want to keep separate from the default tasks list, you should create a new task list. |
As SharePoint lists grow, site performance might be adversely affected. If an organization will have many workflows, consider creating a separate task list and history list for each workflow to avoid potential performance problems.
Associate a workflow with a list or document library
Use the following steps to associate a workflow with a list or document library. Note that some workflows, such as the Three-state workflow, require you to create a column in your list in which the workflow can display status. For example, before you add the Three-state workflow to a list, we recommend that you first create a column of the “Choice” type and assign three choices to the column.
To associate a workflow with a list or document library
Verify that you have the following administrative credentials:
- You must be granted the Full Control permission-level on the list or library that you are configuring.
Browse to the list or library to which you want to add a workflow.
Do one of the following:
For a list, on the List Tools tab, click List.
In the Settings group, click Workflow Settings, and then click Add a workflow.
For a library, on the Library Tools tab, click Library.
In the Settings group, click Workflow Settings, and then click Add a workflow.
On the Add a Workflow page, in the Workflow section, select the workflow template that you want to associate with this list or library.
In the Name section, type the name that you want to use to identify this workflow to users of this list or library.
In the Task List section, specify a task list to use with this workflow.
In the History List section, select a history list to use with this workflow.
The history list displays events that occur during each instance of the workflow.
Importante
You can use the default history list, select another existing history list, or create a new one. When SharePoint lists grow in size, site performance might be affected. If an organization will have many workflows, consider creating a separate history list for each workflow association to avoid potential performance problems.
In the Start Options section, specify how (automatically or manually), when (item update, creation, or both), or by whom a workflow can be started.
Note that the available start options are determined by the workflow template and differ from one workflow to another.
Observação
By default, users who have Edit Item permissions can start a workflow. If you specify that Require Manage List permissions are needed to start the workflow, only users who have Manage List or Web Designer permissions can start an instance of the workflow. Most workflows do not require this restriction. However, you can use this setting for workflows that include tasks, such as deleting documents, which only certain people should be able to perform.
If the workflow that you selected has additional configuration options, click Next to customize settings that are specific to workflows, as necessary. Otherwise, go to the next step.
When you have finished specifying your configuration options, click OK to apply your changes to the workflow association.
Associate a workflow with a list or library content type
Use the following steps to associate a workflow with a list or library content type.
Before you can perform the following steps, the list or library that you are configuring must first be configured to allow the management of content types.
To associate a workflow with a list or library content type
Verify that you have the following administrative credentials:
- You must be a member of the Site Owners group on the SharePoint site that you are configuring.
Open the list or library that contains the content type to which you want to associate a workflow.
Do one of the following:
For a list, on the ListTools tab, click List.
In the Settings group of the ribbon, click List Settings.
For a library, on the LibraryTools tab, click Library.
In the Settings group of the ribbon, click Library Settings.
In the Content Types section, in the Content Type column, click the name of the content type to which you want to associate a workflow.
Observação
If the list or library is not set up to allow for management of multiple content types, the Content Types section is not displayed. For more information, see Use content types to manage content on a SharePoint site (https://go.microsoft.com/fwlink/?LinkId=184651).
On the List Settings or Document Library Settings page, in the Settings section, click Workflow settings.
On the Workflow Settings page, click Add a workflow.
On the Add a Workflow page, in the Workflow section, select the workflow template that you want to associate with this content type.
In the Name section, type the name that you want to use to identify this workflow to site users.
In the Task List section, specify a task list to use with this workflow.
In the History List section, select a history list to use with this workflow.
The history list displays all events that occur during each instance of the workflow.
Importante
You can use the default history list or you can create a new one. As SharePoint lists grow in size, site performance may be affected. If an organization will have many workflows, consider creating a separate history list for each workflow to avoid potential performance problems.
In the Start Options section, specify how (automatically or manually), when (item update, creation, or both), or by whom a workflow can be started.
Note that the available start options are determined by the workflow template and differ from one workflow to another.
Observação
By default, users who have Edit Item permissions can start a workflow. If you specify that Require Manage List permissions are needed to start the workflow, only users who have Manage List or Web Designer permissions can start an instance of the workflow. Most workflows do not require this restriction. However, you can use this setting for workflows that include tasks, such as deleting documents, which only certain people should be able to perform.
If the workflow that you selected has additional configuration options, click Next to customize settings that are specific to workflows, as necessary. Otherwise, go to the next step.
When you have finished specifying your configuration options, click OK or Save (depending on the workflow) to apply your changes to the workflow association.
Associate a workflow with a site content type
Use the following steps to associate a workflow with a site content type.
To associate a workflow with a site content type
Verify that you have the following administrative credentials:
- You must be a member of the Site Owners group on the site on which you are performing this procedure.
Browse to the site where you want to associate a workflow with a site content type.
Observação
Site content types that are inherited from another site, for example, the top-level site of a site collection, must be associated from the site from which they are inherited. In this case, go to the site from which the site content type is inherited to add the workflow association.
On the home page for the site, on the Site Actions menu, click Site Settings.
On the Site Settings page, in the Galleries section, click Site content types.
On the Site Content Types page, in the Site Content Type column, click the content type to which you want to add a workflow association.
On the Site Content Types page, in the Settings section, click Workflow settings.
On the Workflow Settings page, click Add a workflow.
On the Add a Workflow page, in the Workflow section, select the workflow that you want to add.
In the Name section, type the name that you want to use to identify this workflow to site users.
In the Task List section, specify a task list to use with this workflow.
In the History List section, select a history list to use with this workflow.
The history list displays all events that occur during each instance of the workflow.
Observação
You can use the default history list or you can create a new one. As SharePoint lists grow in size, site performance might be affected. If an organization will have many workflows, consider creating a separate history list for each workflow to avoid potential performance problems.
In the Start Options section, specify how (automatically or manually), when (item update, creation, or both), or by whom a workflow can be started.
Note that the available start options are determined by the workflow template and differ from one workflow to another.
Observação
By default, users who have Edit Item permissions can start a workflow. If you specify that Require Manage List permissions are needed to start the workflow, only users who have Manage List or Web Designer permissions can start an instance of the workflow. Most workflows do not require this restriction. However, you can use this setting for workflows with tasks, such as deleting documents, which only certain people should be able to perform.
If the workflow that you selected has additional configuration options, click Next to customize settings that are specific to workflows, as necessary. Otherwise, go to the next step.
When you have finished specifying your configuration options, click OK to apply your changes to the workflow association.
Associate a workflow from a feature package with a site
Use the following steps to associate a workflow (that is part of a feature package) with a site.
To associate a workflow with a site
Verify that you have the following administrative credentials:
- You must be a member of the Site Owners group on the site on which you are performing this procedure.
Browse to the site from which you want to add a workflow association.
On the Site Actions menu, click Site Settings.
On the Site Settings page, in the Site Administration section, click Workflow settings.
On the Workflow Settings page, click Add a workflow.
On the Add Workflow page, in the Workflow section, select the workflow template that you want to associate with this site.
In the Name section, type the name that you want to use to identify this workflow to site users.
In the Task List section, specify a task list to use with this workflow.
In the History List section, select a history list to use with this workflow.
The history list displays all events that occur during each instance of the workflow.
Observação
You can use the default history list or you can create a new one. As SharePoint lists grow in size, site performance might be affected. If an organization will have many workflows, consider creating a separate history list for each workflow to avoid potential performance problems.
In the Start Options section, specify whether the workflow can be manually started by an authenticated user who has Participate Permissions and whether Manage Permissions are also required to start the workflow.
Note that the available start options are determined by the workflow template and differ from one workflow to another.
Observação
By default, users who have the Edit Items Permissions can start a workflow. If you specify that Require Manage permissions are needed to start the workflow, only those who have been granted the at least the Designer level of permissions can start an instance of the workflow. Most workflows do not require this restriction. However, you can use this setting for workflows that have tasks, such as deleting documents, which only certain people should be able to perform.
If the workflow that you selected has additional configuration options, click Next to customize settings that are specific to workflows, as necessary. Otherwise, go to the next step.
When you have finished specifying your configuration options, click OK to apply your changes to the workflow association.