How can I list all workflows and associations? I can find the number through the workflows page in the site collection administration, but i need to find the associations of each...
This is for MOSS 2007!
You may use Powershell script to get all the workflow associations for all lists of the site.
Sample code might look like this -
UPDATED CODE for checking a particular list-
|show 6 more comments|
SPWeb.WorkflowTemplates; gives you a list of all workflow in a site.
SPWorkflowManager.CountWorkflowAssociations gives you the count of all associations in a Site Collection
But to get all the associations you have to loop through all Content Types, Lists and Content Types in lists and look at the WorkflowAssociations property
If you want to use Deepu's PowerShell on 2007 the replace line 1 with
But remeber that his script will not show workflows associated with ContentTypes or ContentTypes in lists
Check out the Workflow Manager web part on http://sp2010adminpack.codeplex.com/. Should work on 2007.