Hi guys,
As part of pre migration analysis, I have got a requirement to find the custom workflows in a web/site in 2007 env. The goal of this solution is to generate a report with the custom workflow details with in the web/site which were created using sharepoint designer .
This is the logic to find whether the workflow is created through designer
private static void GetCustomWorkFlows(SPWeb web)
{
foreach (SPList list in web.Lists)
{
foreach (SPWorkflowAssociation wfAssociation in list.WorkflowAssociations)
{
if (wfAssociation.BaseTemplate == null && wfAssociation.InternalName.Contains("Xoml"))
{
//SPD workflow
}
else
{
//OOB Workflow
}
}
}
}
For one of the workflow which i have created through designer these are the Name and Internal Names
Name : MySPDTestWf
Internal Name :
MySPDTestWf
<Xoml.d6bb7778_0d20_4a85_8da7_5eb6ceafcafa.2.1024.3.1024.dll>
<Cfg.d6bb7778_0d20_4a85_8da7_5eb6ceafcafa.4.1024.>
Hope Helpful...
Thanks.