Install and configure SharePoint 2013 Workflow

Marcin Siewnicki

Microsoft introduced the new workflow engine in SharePoint 2013 – Workflow Manager. This service is based on Windows Workflow Foundation and brings new features to the SharePoint platform, such as scalability, new activities, REST, and instance management.

This new engine is not available in the OOTB installation. A clean SharePoint installation offers only SharePoint 2010 Workflow.

Workflow Manager - not installed

What we can do to use SharePoint 2013 Workflow?

Prerequsites

Workflow Manager is not a part of the SharePoint installation media and must be downloaded from Microsoft website.
We need an additional service account for Workflow Manager service.
User Profile Service application must be configured and running.
App Management Service application must be configured and running.

Installation

The first step is to download installation files. We have 2 options:

I will use the Command Line tool – this tool allows us to download all the required components and install Workflow Manager on an online or offline machine.

  1. Download and install Web Platform Installer v4 Command Line
  2. Open an elevated command prompt and go to the installation directory
    cd “c:\Program Files\Microsoft\Web Platform Installer”
  3. Run the following command. It will download Workflow Manager and the other required services: webpicmd /offline /Products:WorkflowManager /Path:c:\WorkflowManagerFiles
  4. Copy the folder with the downloaded Manager (c:\WorkflowManagerFiles) to the destination server.
  5. Open an elevated command prompt and go to the directory cd “c:\WorkflowManagerFiles\bin”
  6. Run the following command to install Workflow Manager WebpiCmd.exe /Install /Products:WorkflowManager /XML:c:/WorkflowManagerFiles/feeds/latest/webproductlist.xml
    This command will install the required sevices.
  7. Run the following command to install Workfow Client WebpiCmd.exe /Install /Products:WorkflowClient /XML:c:/WorkflowManagerFiles/feeds/latest/webproductlist.xml
    This command will install the required sevices.
  8. Open Workflow Manager Configuration wizard and select Configure Workflow Manager with Default Settings (Recommended).Workflow Manager - start
  9. Fill in the required fields on the next page:
    • SQL SERVER INSTANCE – your SQL Server name
    • USER ID – service account for Workflow Manager service
    • PASSWORD – password for the service account
    • Allow Workflow management over HTTP on this computer – check if you need to use HTTP for testing or development. For production it is recommended to use only SSL.
    • Certificate Generation Key – key required for joining other servers to the farm

    Workflow Manager - required fields

  10. Review and confirm all the information on the next page. You can also get all the installation commands for PowerShell.
    Workflow Manager - PS
  11. Review the installation status.
    Workflow Manager - installation status
  12. Test the installation by browsing to the Workflow Manager site. You should see a XML definition of Workflow Service.
    Workflow Manager - check

Configuration

Now we need to connect Workflow service with our SharePoint farm. To achieve this run the following command in SharePoint 2013 Management Shell:

Register-SPWorkflowService -SPSite http://vmsp13 -WorkflowHostUri http://vmsp13:12291 –AllowOAuthHttp

SPSite parameter is your SharePoint site,  WorkflowHostUri is the Workflow Manager service URL (port 12291 is for HTTP, port 12290 is for SSL).

Now we can create SharePoint 2013 Workflow from SharePoint Designer 2013!

Workflow Manager - create workflow

One thought on “Install and configure SharePoint 2013 Workflow

  1. Thank you so much! Was beating my head against the wall for hours on this on. Here it just turns out the components needed updating! LOL – Thanks a lot Microsoft!

    Like

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 )

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