Monday, February 4, 2013

Installing and configuring Workflow for SharePoint Server 2013

When you open SharePoint Designer 2013 connected to a site to build a workflow, you will notice a new option called platform type. If it’s only “SharePoint 2010 Workflow” that you see, you need to install and configure “workflow manager”.

As MSDN recommends, you need to consider the following two key factors before configuring Workflow Manager to work with SharePoint Server 2013.

  • Is Workflow Manager installed on a server that is part of the SharePoint farm?
  • Will communication between Workflow Manager and SharePoint Server 2013 use HTTP or HTTPS?

These factors translate into four scenarios. Each scenario configures a SharePoint Server 2013 farm to communicate and function with the Workflow Manager farm. Follow the scenario that matches your circumstance.

  1. Workflow Manager is installed on a server that is part of the SharePoint 2013 farm. Communication takes place by using HTTP.
  2. Workflow Manager is installed on a server that is part of the SharePoint 2013 farm. Communication takes place by using HTTPS.
  3. Workflow Manager is installed on a server that is NOT part of the SharePoint 2013 farm. Communication takes place by using HTTP.
  4. Workflow Manager is installed on a server that is NOT part of the SharePoint 2013 farm. Communication takes place by using HTTPS.

Mine is the 1st scenario. Workflow Manager can be downloaded from here. Workflow Manager installation uses Web Platform Installer as shown in the below screen.
image
image 
Then you need to install the prerequisites. 
image
image
image
Clicking continue will bring the configuration options.
image 
I prefer to go with the custom setting as I can get to know what’s going on behind scene. If you select the “Configure Workflow Manager with Default Settings (Recommended)”, it will install a Workflow Manager farm. So let’s move with custom :)
In the below screen you need to specify the database server, where it will create the DBs needed for WM(Workflow Manager).
image
Make sure you remember or keep safe the Certificate Generation Key, as it’s needed when you want to add more servers to the WM farm.
image
Service account will be used to run the Application pool of the WM Website.
image 
Below screen looks nice so added that too :D
image
image
image
image
Three screens below show the full configuration summary.
image
image
image
You can even see the full PowerShell script for the configuration.
image
image
image
image
Great!! You are done with the installation and the configuration of Workflow Manager. Yet one more step left for the Workflows to work in 2013 Platform. Open IIS Manager to see the WM Site and the port you configured.
image
Open SharePoint Management Shell with Admin rights and execute the below cmdlet (replacing the site and the Workflow Manager host site).

Register-SPWorkflowService –SPSite "http://www.whiteknight.com/Hr" –WorkflowHostUri "http://workflow.whiteknight.com:12291" –AllowOAuthHttp

Finally to check whether everything works fine… Open the above site (registered with workflow host uri) in SharePoint Designer 2013 and check the Platform type in workflow.
Workflow Manager 1.0
When you install Workflow Manager on a WFE it automatically installs the Workflow Manager Client on that WFE. You will still need to install the Workflow Manager Client on any additional WFE servers.

11 comments:

Unknown said...

Hi, What to do when Workflow Management Website cannot be open after the configuration? Error "This page can't be displayed
". Hence, it results to unsuccessful connection to sharepoint 2013 when performed powershell registration command.

Unknown said...

Thanks for the help. I had a failure after pre-req reboot about a missing path to the installer (just re-ran from the directory the bits where in and all is good)...until I got the part where SQL needs updated. I'll get to it, one day. Visit this link SharePoint for more informations about sharepoint

Anonymous said...
This comment has been removed by the author.
Anonymous said...
This comment has been removed by the author.
Unknown said...

I have also same problem with Noel, when I open the localhost:12290 I've got this error "This page can't be displayed" or If im going to choose installation using the Recommended settings or I have an error on the first installation of creating the new service bus and it says missing aliases or column name something.. Please help me..Thank you so much

Unknown said...

Hi, I have the complete setup done and all of it was smooth. However when I develop a workflow via VS 2012, I cant see the workflow in the associated list's "Add a Workflow" page. Am I missing anything?

Staygreen Academy said...

Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
SharePoint Training Online

Unknown said...

Information was good, I like your post.
Looking forward for more on this topic.
SharePoint Consulting

Unknown said...

Information was good, I like your post.
Looking forward for more on this topic.
SharePoint 2013 Administration training Online

Unknown said...

Hi!
hope you are good.. how do I find WorkflowHostURI ?

thanks
Umair

Unknown said...

SharePoint Solutions.NET is a virtual company provide SharePoint Services Globally. We offer a wide array of Services covering the entire range of Microsoft SharePoint capabilities.