I just played around with Reusable Workflow functionality in Sharepoint Designer 2010. It’s very-very cool I have to say. I really can see the potential with this functionality if all of the bugs are fixed.
Basically what you can do with this is, you can create a Reusable Workflow on a particular site, export it as WSP, restore it into Visual Studio then deploy it to another Sharepoint site.
So in theory, you don’t have to re-create the workflow (unlike MOSS and SP Designer 2007).
However, I’ve found some limitations:
–Ā If you create anĀ IFĀ condition and usesĀ “Current Item”Ā value for checking the value against, there is only a set of limited fields that you can check against:Ā Content Type, Created, Created By, ID, Modified, Modified By and Title.
– It’s still buggy. Workflow that hasĀ “Collect Data from User”Ā task doesn’t work properly. I personally uses this functionality heavily.
Collect Data from User Bugs
Below is the list of bugs I found:
– By default if you’re using the defaultĀ TasksĀ list, the workflow will simply stop and crash.Ā There was an error message in the workflow history. The workaround for this will be to create a new task list.
– You will not get the nice “collect data” page on the destination site. Somehow it redirects you to theĀ “View Item” (DispForm.aspx)Ā page.
General Bugs
– By default when you first load WSP into Visual Studio, if you openĀ Elements.xml,Ā VS/Sharepoint appendsĀ InstantiationĀ URLĀ which if you deploy it to the destination site will create an error when you try to start the workflow manually. TheĀ error was:Ā “The workflow template has specified no FormURN for this page”.
Conclusion
For general simple workflow, this functionality has worked really great. It’s just when you start trying to do a bit more complicated stuff (eg. collect data from user, etc), it isn’t that functional. But I’m hopeful that this will be fixed and improved on the released version.
Cheers,
Tommy