Monday, January 4, 2016

How to configure workflow manager with SharePoint Server 2013.

When you start creating workflow with default Workflow Manager in SPD you will have only SharePoint 2010 Workflow in Platform Type.

To get SharePoint 2013 Workflow Platform Type need to install Workflow Manager 2013.

SharePoint Workflow Manager 2013 only supports SharePoint 2013 Standard and SharePoint 2013 Enterprise Edition not SharePoint foundation 2013.

In SharePoint 2013 developers have two Platform Type to create workflow.

  1. SharePoint 2010 Workflow -> Based on Windows Workflow Foundation 3. Installs automatically with SharePoint 2013 products.
  2. SharePoint 2013 Workflow -> Based on Windows Workflow Foundation 4 exclusively designed for use with SharePoint 2013. It don’t install automatically. Workflow Manager needs to download and install separately through Web Platform Installer.

Note: There is one more Platform Type SharePoint 2013 Workflow-Project Server but it requires Project Server 2013. I am not going in details.  

So this is little overview. Now let’s start configuring Workflow Manager 2013.

If you don’t have Microsoft Web Platform Installer 4.0 or Microsoft Web Platform Installer 5.0 already installed then install it.

  1. Search for Workflow Manager in Search Box in Web Platform Installer.
  2. Add Workflow Manager 1.0 Refresh (CU2).
  3. Click Install

Now Workflow Manager installed in your server. Next step is to configure it.

When you click on continue a configuration wizard will open.

  1. Click on Configure Workflow Manager with Defaults Setting (Recommended)

  1. Workflow Manager Configuration Wizard will open. Enter your SQL Server instance where you want to install your Workflow Manager Database and Test Connection.
  2. To Configure Service Account by default it gives you Windows Authentication to enter Configure Service Account. I am using Windows Authentication if you have to choose SQL server Authentication click on Advanced Options and select SQL Server Authentication.
  3. If you want to allow SharePoint Farm to communicate with Workflow Server over HTTP then checked Allow Workflow Management over HTTP on this Computer.

  1. In Certificate Generation Key enter your key keep in mind every time when you enter a computer to the farm you will have to supply same key. My case it is PassWord@1
  2. Click Next.  Here you will get Summery what’s going to happen in next phase.
  3. Click next. The entire perquisite will install one by one. Just keep calm and have hawk eyes on progress bar.  If everything done successfully click next.
  4.  Now you have successfully configured Workflow Manager 2013.

Next step is to register your WM.

This can be done only with PowerShell command.  

  1. Open your SharePoint PowerShell with Administrative Privilege.

Register-SPWorkflowService -SPSite ‘http://sitecollection’ -WorkflowHostUri ‘http://serverurl:12291’ –AllowOAuthHttp

 

sitecollection = your site collection URL it can be any site collection.

serverurl = This is your server url where you have installed  Workflow Manager recently. 12291 is port for Http and 12290 is Port for Https.

You can verify port with below PowerShell command.

Get-WFFarm | ft HttpPort
Get-WFFarm | ft HttpsPort

Note: If Workflow Manager is installed on a separate server which is not part of the SharePoint farm, you need to download and install the “Windows azure workflow manager client” on the each SharePoint server which you are configuring to use workflow and then run pairing cmdlet to register WM.

Now Check your workflow in SPD you have two platform type:

Cheers...

Thanks


by Amir Reza via Everyone's Blog Posts - SharePoint Community

No comments:

Post a Comment