In the previous article SharePoint 2013 : How to migrate SharePoint 2010 Style Workflows – Part 3 of this series on the Workflow migration Process we saw the execution of Steps 5 & 6 for the process.
In this article we are going to see the execution of Steps 7 & 8 and for the sake of a quick review I am putting up the process diagram again in here.
Step 7 - Destination Site – Provision Workflow Export File
Once we have successfully finished with the deployment of Content Type in Destination Site “Site002” then the next move is to provision the Workflow export file that we have got from “Step 5” earlier
Here we will be using PowerShell Commands to get it deployed. We will be making use of “Add-SPSolution” & “Install-SPSolution” Cmdlets as shown below-
And that’s all. We are all done with the export process and now it's time to finally test it in Destination Site “Site002”
Step 8 - Destination Site – Test Workflow
In order to test the functioning of the Workflow do as follows-
- Launch SharePoint Designer 2013
- Connect to Destination Site “Site002”
- Click on “Workflow” link in the left navigation
There we can see the “CustomerLogs” workflow under “Reusable Workflow” list
Now visit “CustomerCT” using Site Settings > Site Content Types
- Click on the Content Type
- Click on Workflow Settings
Click “Add a workflow” link to choose the workflow to associate with the content type
From the list of available workflows choose “CustomerLogs” and give it a logical name of your choice
That is how we get the workflow associated with the content type.
Now we need to create a list and add this content type to the list as we did earlier
And finally you can create the item based on this content type
Add some values and save the item
Once the item is created we can start the workflow as shown in the following steps-
Click on “Workflows” link
Start the “Log Customers” Workflow on the item
Once completed see the status of the Workflow and the message logged by it in the history log
And we got the Workflow export process working like a charm.
That is all for this demo.
Hope you find it helpful.