Workflow Manager

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:

Advertisement