Register Workflow Manager with SharePoint 2013

Posted on Updated on

This article describes how to register the SharePoint 2013 Workflow platform to work with SharePoint Server.

I Assumes you have already installed the Workflow Manager product and configured the Workflow Manager and Service Bus farms using either the Configuration Wizard or through PowerShell. Here, we shall go ahead and set SharePoint up to use the Workflow farm.

The Register-SPWorkflowService cmdlet  will be used to configure the SharePoint host to use a workflow service by using the SPSite and WorkflowHostUri parameters.

Syntax

Register-SPWorkflowService -SPSite <SPSitePipeBind> -WorkflowHostUri <String> [-AllowOAuthHttp <SwitchParameter>] [-AssignmentCollection <SPAssignmentCollection>] [-Force <SwitchParameter>] [-PartitionMode <SwitchParameter>] [-ScopeName <String>]

From <https://technet.microsoft.com/en-gb/library/jj663115.aspx>

Example

The following script will be used for http communication,

Register-SPWorkflowService -SPSite “http://SharePoint.Contoso.com” -WorkflowHostUri “http://WorkFlowManager.Contoso.com:12291/” -verbose -force

The following script will be used for https communication,

Register-SPWorkflowService -SPSite “https://SharePoint.Contoso.com” -WorkflowHostUri “https://WorkFlowManager.Contoso.com:12290/” -verbose -force

Validation

Once the above script is executed the following script can be used to validate the registration,

[Void][System.Reflection.Assembly]::loadwithpartialname(“Microsoft.SharePoint.WorkflowServicesBase”)

$web = Get-SPSite -Limit 1 -WarningAction SilentlyContinue | Get-SPWeb

$wfm = New-Object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager($web)

$wfm | SELECT *

MS Reference:

Advertisements

One thought on “Register Workflow Manager with SharePoint 2013

    Hari said:
    May 21, 2015 at 1:59 pm

    Good post. It is very useful to my project. Please publish end-to-end workflow manager configuration.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s