views:

542

answers:

1

With MOSS 2007 (the question is probably applicable to WSS as well but I'm working in MOSS at the moment) is it possible to have the same Workflow on every Pages list within the site collection?

We're deploying a site with a basic 2-stage approver workflow so I'm not developing a custom one, just using the existing Approver workflow but having 2 approval groups working sequientially (see this blog post: http://www.sharepointblogs.com/tommysegoro/archive/2008/08/18/configuring-sharepoint-moss-2007-multi-stage-approval-workflows.aspx).

The problem is that when you create a Publishing Site it gets (by default) a single approver workflow, not the one I want.

Can I have the workflow enforced across the site collection and for any child site collections? Or do I need to create my own site template (and can that even define the workflow as it's deployed?)?

Edit

Just to clarify, I'm wanting to have the ability to create a new MOSS publishing site which has some slight modifications to the standard Approver workflow which is out of the box within SharePoint. I'm not wanting to deploy a different workflow, just modify the existing.

When you create a Publishing Site you get a "Parallel Approver" workflow which assigns workflow tasks to a group called Approvers and is set to run the workflow tasks in parallel. I need to change the groups (add a new one) and set it to be sequential.

+1  A: 

You can create a feature which will add the second work flow to the Pages library when activated using the SPFeatureReceiver class, and staple that feature to the existing Publishing Site site definition using feature stapling.

Here are MSDN posts on using feature event receivers and feature stapling:
http://msdn.microsoft.com/en-us/library/bb862634.aspx
http://msdn.microsoft.com/en-us/library/bb861862.aspx

OedipusPrime
I'm not trying to add a new workflow, just modify the existing one
Slace
The same paradigm applies, create a feature that makes the modifications you need using the SharePoint/WF object model and staple that feature to the to existing site definition.
OedipusPrime
Hmm I guess my question isn't really clear enough, I'm also needing to work out how to do those changes.
Slace
you correctly answered my question, too bad my question was actually not really the one I wanted answered :P
Slace
Sorry I couldn't give you more info! I don't know enough about the APIs off the top of my head to say more than "should be possible".
OedipusPrime