Click here to Skip to main content
Licence CPOL
First Posted 6 Apr 2010
Views 13,951
Bookmarked 10 times

Reusable and Globally Reusable Workflows in SharePoint 2010

By | 6 Apr 2010 | Article
Using SharePoint Designer 2010 to create reusable workflows!

Introduction

"SharePoint Designer Workflows" is nothing new, we've had that in 2007 as well. In SPD 2007, workflows were not reusable. Once you have defined a workflow, you cannot move that workflow to another list or reuse it somewhere else.

NOW in SharePoint 2010, this is possible! You can create reusable workflows and attach them to more than one list.

"Reusable workflows" is one of the coolest features in SharePoint 2010, however when I opened up SPD for the first time, I was a bit confused because I noticed two different terms "Reusable Workflows" and 'Globally Reusable Workflows".

ResuableAndGloballyReusable

When you create a Reusable workflow in SharePoint Designer 2010, it’s by default reusable within the site it has been created in, which means that it can be attached to any list within this site. But what if you want your workflow to be reusable in the whole site collection? Well, this is the definition of “Globally Reusable Workflows”. You can easily convert your workflows to be available anywhere in your site collection by opening your workflow and clicking on “Convert to Globally Reusable” from the ribbon as shown below.

convert_to_globally_Resuable_wf

Warning

Also it’s worth mentioning that only the workflows created at the root level of the site collection can be converted to be Globally Reusable but other ones created in sub sites cannot. Try to create a workflow in a sub site, open it and note that the Conversion button is dimmed.

convert_to_globally_Resuable_wf_dimmed

Another important question is what if I want to take my workflow and give it to somebody else in a different site collection? There’s another button in the ribbon called “Save as Template”, this takes the workflow, put it in a wsp file and save it to the ‘Site Assets” library. You can export this file and deploy it to other site collection and what’s really cool is that you can import this wsp into Visual Studio and extend it over there.

SaveAsTemplate

VS2010

Very cool stuff! Thanks Microsoft for this feature!

History

  • 6th April, 2010: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ayman M. El-Hattab

Architect

Egypt Egypt

Member

Ayman El-Hattab is a SharePoint MVP, Developer, Author & Speaker. He is a Microsoft Certified Solution Developer as well as a Microsoft Certified Technology Specialist in SharePoint. Ayman writes articles about topics in relation to SharePoint and its related technologies for online magazines, publicly speaks for numerous user groups, offline communities and SharePoint Saturdays, is the founder of www.SharePoint4Arabs.com, organizes events for Egypt SharePoint User Group and you will always find him active at MSDN and Technet forums. Ayman has also been recognized by Microsoft as Most Valuable Professional (MVP) in April 2010.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralNice post PinmemberMember 472080515:30 10 Feb '12  
QuestionConvert to Globally Reusable Option not Avaliable in SPD 2010 Pinmembernetasheesh21:03 11 Sep '11  
GeneralGood Information PinmemberBalaji_rcs21:35 13 Dec '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 6 Apr 2010
Article Copyright 2010 by Ayman M. El-Hattab
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid