Ashley
Blog - Robert Bogue [MVP]
Rob's Notebook
SharePoint Calendar

Categories

Links

Archives

Other Blogs

Thor Projects LLC - Welcome : Blog - Robert Bogue [MVP]

Writing Your Own SharePoint Publishing Approval Workflow

Posted by Robert L. Bogue on Saturday, 1 Oct 2011 11:00 | 0 Comments |

Out of the box SharePoint has a Publishing Approval workflow that's hooked up to libraries to support approval of published content. It's possible to modify this workflow to support your own needs – but there may be some times when you want to author a new workflow from scratch. This works fine in SPD, except that once created you can't associate it so that it is started when someone tries to publish a new major version of the item. Take a look at the following two screen shots:

 

If you want to enable this option you'll need to directly edit the workflow's configuration XML files. To do this go to the All Files option

Then go to _catalogs then wfpub and the name of your workflow. Note that there's a different location for non-globally published workflows but since you want this to work anywhere in the site collection you'll want to work with a globally published workflow. Once you have your folder you should see something like:

Right click the .wfconfig.xml file, select open with, and SharePoint Designer (Open as XML)

In the file add AllowStartOnMajorCheckin="true"

If you created the workflow on a content type you may need to remove the Category and ContentTypeID attributes of the Template node to allow the workflow to be associated with the library. The Start this workflow to approve publishing a major version of an item is only available on the library – this start option isn't available for a content type.

Comments

Leave your own comment

Name

Url

Email

Comments