Wednesday, June 1, 2011

Introduction to SharePoint 2010 Workflows

In SharePoint 2007, the only containers available were Lists/Libraries or Content Types. The container owns the workflow, and instances of the workflow run against objects in that container. While this has changed in SharePoint 2010, workflows are still attached to a List, Library, or Content Type.

Apart from the above in SharePoint 2010 a workflow can be attached to a Document Sets and  a SharePoint site.

Tools to create workflow:
You can use SharePoint designer, Visual Studio 2010 and Visio 2010 to create custom workflow. Here is a good article on Create a sequential workflow using Visual studio 2010 in SharePoint 2010.

Workflow Types:
The new type workflow is Reusable Workflow:
You can reuse the workflow multiple times. Also you can deploy the workflow across environments. If you are building workflows to operate on things stored inside a list or library you should create them as reusable workflows.

Site Workflows:
Also new in SharePoint 2010.They are workflows that are associated with a site as their owning container. You can create a workflow without creating a list or library.
It can run on the site itself, on one or more lists within the site, on multiple items from a single list, or on multiple items from multiple lists.

List Workflows: These workflows are same as MOSS 2007 list workflows.

Steps:
It is used to organize the actions and conditions that make up the workflow into groups. See more.

Actions:
A very basic unit of work that can be added to the workflow. See more.

Conditions:
conditions control whether or how actions will do their work.Conditions give the workflow author the opportunity to add branching and conditional logic to the workflow, hence controlling what happens based upon circumstances at run time. See more.