Wednesday, February 8, 2012

Reusable workflows in SharePoint 2010 – Part 2


If you have not gone through Part-1 of this series, I would recommend you reading it first and then continue reading here.

Now open the SharePoint Designer, connect with your site and click on Reusable Workflow.



Select document content type, here we can select the content type on which we would like to attach the workflow to.


Now check the condition, that if the current field is equals to department category and compare that with Marketing then log to history that marketing was selected.


And I have then put if else condition for each department.


Save the workflow and then publish the workflow.

Now it’s time to associate this workflow with the content type. Being on the same workflow settings page, click on associate to content type option from ribbon.

When you click on it, the browser window opens which allows you to associate. Select start this workflow on item adding.


Once you create a document using the template, and when you save it, you can see the workflow has triggered and then completed by saving the right information in the workflow history list.










3 comments:

koechig.com said...

Great artticle. I have a situation with a Resusable Workflow that is giving me a problem and I wonder if anyone has any suggestions. I have created such a workflow that works fine. I need to programatically enable it as a feature when I create new sites within my environment. I have a solution created by a developer and he is not able to find my workflow in the Project Model in order to enable it. He wants $$$ to research the solution and I'd rather do the research. ANy ideas?

Thanks.

SharePoint Kings said...

there can be many reason. need to understand what solution you guys created. what is the scope of the feature you are looking for and other stuffs as well.

if possible please explain your scenario in detail.

Nadan Hotic said...

I am trying to make a reusable workflow that can switch between 13 different content types ( Word templates ). is there a way to do this?




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com