I've build a workflow with SharePoint Designer 2010 on a dev computer. Let's say it's in V1.
Now I want to move the workflow to the production environment. What is the correct way to do that ?
I've exported the workflow as a template (in a wsp file), then added the solution in the farm solution (didn't work with sandboxed solution). Then I can can activate the feature and my workflow template is here in the target computer. Is it the correct way ?
This approach have caused some problems :
- the exported WSP contains the OOB
<Field Id="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" ... />
. So as soon as I deactivate the feature, theTitle
field is removed and everything in the site brokes - If I update the workflow on the dev computer, I can't export it again and upgrade the solution on the target computer. New solution ID and feature ID are generated, and the upgrade cannot be done.
How can I properly manage the lifecycle of the wokflow ? If I import it into Visual Studio, can I later design the workflow in SPD then upgrade the Visual Studio project ?
PS: Don't know if it matters, but the Workflow is a reusable workflow targeting a custom content type.
[Edit] the question is still open, but I found the source of my problems; I renamed on the content types generated by the custom task process. Don't know why, but it broke something. I set-up from scratch the task process and it works. I can actually export the WF, and import it using site solutions