Introduction
We developed and tested the workflow on a testing environment and now want to move to the production environment without the need to re-develop the workflow.
The steps to perform this are rather simple:
- Export the workflow to Visio.
- Edit the VWI archive and delete the configuration file.
- Import the workflow back to your destination site.
Step 1: First we will export all the files from the first site.
Open your site in SharePoint designer -> All Files -> Workflows -> Open your workflow.
Then select all the files and click on Export as shown in the figure below:
Step 2:
- Open Second Site in SharePoint Designer 2010
- Then go to All Files -> Workflows. Here Create same workflow folder of the site first name.
- Then create a Blank workflow inside the folder and then copy List ID, TaskListID and HistoryListID.
- Open xoml.wfconfig.xml in Notepad, Then find the Association tag and very carefully change the GUIDs so that your migrated List IDs are the same as the "Site 2 List" workflow List IDs. Observe the figure below:
- Save the file.
- Close the SharePoint Designer.
- Open the SharePoint Designer again and open your site.
- Instead of All Files, this time click on Workflows.
- Select your workflow, then Save and Publish the workflow.