Installing Workflow Manager and Registering Workflow Service for SharePoint 2013


Prerequisites:

1. Check the Central Admin if the Service is already running before you start the whole process.

2. Server where installation is done should be connected to internet. There are ways to install when it is not connected to the internet too.

3. Install the Workflow Manager and it will automatically install the Web PI Installer.

Configuration Steps

1. Click on the Workflow Manager Configuration Wizard and select Configure Workflow Manager with Custom Settings.

image001

2. Enter your SQL Server Instance Name in the Configure Farm Management Database and Instance Management Database will be updated automatically.

image003

3. Scroll down and enter the Admin account’s Password. The user ID will be provided already. Also enter your own password for Certificate Generate Key. Try to set an easy one so that you can remember later on.

image005

4. Scroll down more and select the checkbox for allow Workflow management over HTTP on this computer and click next arrow on the end of the page.

image007

5. Next window is for Service Bus Configuration. DB Server name will be automatically published based on your entry on the previous page. Just scroll down.

image009

6.  Select on both selections as below to choose the same account information to be used as Workflow manager configuration. Just scroll down and check if all the information is already filled up and then click next arrow mark at the bottom of the page.

image011

7. The next page will give you a summary of the information you entered for workflow manager configuration as well as service bus configuration. Just check thru and then click ok button for the configuration to start off.

image013
image0158. The Configuration wizard starts off and gives a green tick after everything is successfully completed. What happens in the background when this runs is

  • It creates a new service bus farm based on the information you provided
  • It creates a new workflow manager farm
  • It adds the host to the service  farm (host is specified automatically in the wizard)
  • It Creates service bus Service namespace
  • It Gets the service bus configurations
  • Then it adds the host to workflow manager farm

image017

9. Once the process is complete, click on click on the ok button to exit the wizard.

image019

10. To Check the status of the farm, open the SharePoint 2013 Management Shell from start window

image021

and enter the following commands to check the status.

Import-Module WorkflowManager
Get-WFFarm
Get-WFFarmStatus

image023

11. Find the EndPoints: and copy the URL in  Internet explorer. This is to trust the certificate manually. Enter the Admin account user Id and password on the prompt.

image025

12. You will see something like below. Click on the lock sign on the browser and if it is not available, then click on the compatibility view icon and the lock will appear.

image027

13. Click on View Certificate in the popup

image029

14. Click on Details and click on Copy to File button on the end. Keep clicking next and specify the name of the certificate as “c:\wfm.cer” and save the key.

image031 image032 image033 image034

15. Once this is done, go to SharePoint Management shell and enter the following powershell cmdlets

$trustCert = Get-PfxCertificate “C:\wfm.cer”

New-SPTrustedRootAuthority -Name “Workflow Manager Farm” -Certificate $trustCert

Once the key is trusted, register the workflow service to your url.

Register-SPWorkflowService -SPSite “<your Web URL>” -WorkflowHostUri “<The same url which you opened in IE to get the certificate. This will be in HTTPS mode>” -AllowOAuthHttp

16. After the service is registered, just do a check if the service is on in the CA. Go to Manage Service Applications and check if the Workflow Service Application Proxy is running.

image036 image038

That’s all and now you can start creating SharePoint 2013 Workflows using SharePoint Designer 2013 and Visual Studio 2012/2013.

Advertisements

About gai3kannan

I am working with NCS Pte Ltd as a Lead Consultant I have taken SharePoint as my full time action and thoughts.
This entry was posted in SharePoint 2013, Workflow SharePoint 2013 and tagged , , . Bookmark the permalink.

One Response to Installing Workflow Manager and Registering Workflow Service for SharePoint 2013

  1. Aroh Shukla says:

    Awesome step by step tutorial Gayathri. Well, in our environment Workflow manager Workflow manager has suddenly stopped and looks the SharePoint 2013 Security patch in May 2015.

    Errors shows: Exception Details: System.ApplicationException: HTTP 500 The remote server returned an error: (500) Internal Server Error and error in Publishing SPD2013 Errors were found when compiling the workflow. The workflow files were saved but cannot be run. System.ServiceModel.ProtocolException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were:

    we have researched all related to this error.
    We have followed all the troubleshooting steps and results were positive http://blogs.msdn.com/b/laleh/archive/2014/09/03/sharepoint-2013-workflow-troublehsooting.aspx and http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx

    All the Workflow and services are in Running Status and UPS/App Management Service been Started. Do you have any Idea to resolve this error?
    How can we deploy the Certificate that you showed at the end of the tutorial, Step 15 and will it be shown on Central Admin >> Security >> Manage Trust?

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s