Sixteen steps that will definitely save you a lot of time if you’re working with workflows, especially the more complex ones.
Saved me a lot of trouble at work, I had to clone a list along with all of it’s workflows to another site.
Saving the list as template helped me move everything (including all of the custom made forms!), while the workaround below made it possible to simply import the workflows I had in place into the new list!
- In SharePoint Designer 2010, select your list and open the workflow you want to export.
- Click on “Save” and “Publish” the workflow.
- Click on “Export to Visio“. Save the file as CompletedWorkflow.vwi or whatever name you want to give it.
- In SP Designer, create or open the list into which you want to import the workflow. There is no way to directly import the exported Visio file into this list.
- Create a new EMPTY workflow.
- Make sure that you do not add any workflow steps! One will most likely be already there but you can leave it, make sure it’s empty though.
- Click on “Save” and “Publish” this empty workflow.
- Then, click on “Export to Visio” and save this as EmptyWorkflow.vwi or whatever.
- Rename both the vwi files by adding “.zip” extension. The files should be CompletedWorkflow.vwi.zip and EmptyWorkflow.vwi.zip.
- The objective is to replace the “workflow.xoml.wfconfig.xml” file from the EmptyWorkflow.vwi.zip into the CompletedWorkflow.vwi.zip.
- It is likely that you will not be able to replace it directly. Copy the file out to the desktop and then copy the file into the other zipped folder.
- Remove the “.zip” extension from the CompletedWorkflow.vwi.
- With this, we have a working importable Visio workflow.
- Back in the SharePoint Designer 2010, close all the workflow tabs.
- Click on the “Import from Visio” and select the CompletedWorkflow.vwi.
As always you are welcome to leave suggestions / questions / whatever.
Exporting and importing of the List Workflow to and from another list or site is actually a non-supported feature.