Vadim Tabakman

*************************************************************************************************************************

EXTREMELY OLD POST - Reusable Workflow Templates support being built for specific Content Types.

*************************************************************************************************************************

One of the limitations of declarative workflows, is that you can't assign them to content types. Although you can't do this at a site collection or site level, with a little workflow design, you can do this at a list or document library level.

If you have a list where you have assigned multiple content types, and you want a workflow to be associated per content type, the only way to do this would be to create a master workflow.

The master workflow is the one workflow that will automatically start when a document or list item is added to your list. This workflow will check what the content type of this item is and then start the appropriate workflow.

I created a SharePoint list and added 3 existing content types to the normal List Item content type.



Now, with a total of 4 content types, I created a really simple workflow for each content type.



The design of these workflows is not important. You would build in the logic that you need for the specific content type. One of the important things, is that these 4 workflows must not start when an item is created or modified. It should only have the "Start Manually" option checked.

Now it's time to create the master workflow.

We will be using the Switch action to compare the content types, and then depending on the content type, we will start the appropriate workflow. The Nintex Workflow Switch action uses a Workflow Variable as input. The first thing the master workflow needs to do, is use a Set a Variable action which does a list lookup at the Content Type metadata on the item and store it in a Text Workflow Variable.



Now, you can use this variable in the Switch action.



In each branch, add a Start Workflow action and configure the action to start the workflow that is related to that Content Type. I've also added an "Other" option to the Switch action so that we can notify someone when an item is created of a content type that we don't know about.

The Master Workflow ends up looking like this :



Useful Downloads :

MasterContentTypeWorkflow.nwf

ContentTypeAnnouncementWorkflow.nwf

ContentTypeContactWorkflow.nwf

ContentTypeIssueWorkflow.nwf

ContentTypeItemWorkflow.nwf

Posted by Vadim Tabakman Sunday, February 5, 2012 9:22:00 AM Categories: Content Types Nintex Nintex Workflow
Copyright Vadim Tabakman
Rate this Content 0 Votes

Comments

Tuesday, May 1, 2012 11:07:06 AM

re: Nintex Workflow - Handle Content Types

Is this the same operation that the "Drop Off" library does in SharePoint 2010?

Monday, March 17, 2014 2:34:41 AM
Panagiotis

re: Nintex Workflow - Handle Content Types

I want to create a workflow that can redirect from a list to other.

To explain that: I have 2 nintex forms and when i click on the submit button on the form 1, i want to run a workflow tha redirect me to the other.

I know that this is possible from the settings off the submit button but i want workflow for that.

I thing to use one list and many content types and use assign to do task in a workflow, but i cant use the content types that i created.

 

Can you help me???

 

 

Monday, March 17, 2014 7:39:14 AM

re: Nintex Workflow - Handle Content Types

Hi Panagiotis,

a workflow can not do this  A workflow runs on the server and has no direct effect any the client machine.  So a workflow can not redirect you to another page.  You will need to add JavaScript that does that from your form.

cheers,

Vadim

Monday, February 1, 2016 5:02:12 AM
Parveen
Gravatar

re: Nintex Workflow - Handle Content Types

Hi Vadim,

Greetings!

 

I want to know about above article is that all the workflows you have created at library level?

I want to know if I have created "Site collection reusable workflow template" then how can I call this at library level?

 

Regrads,

Parveen.

  •  
You must sign in to this site to post comments.
Already Registered?
Sign In
Not Yet Registered?
Register

Statistics

  • Entries (288)
  • Comments (1771)

Categories