SharePoint 2013: Best Practices Creating a Dev Environment - Configure Workflows
Go back to Creating a Dev Environment
Please refer to http://sharepointdragons.com/2014/01/07/creating-and-managing-workflows/ for detailed information about workflows.
- Download Windows Azure Workflow at http://www.microsoft.com/en-us/download/details.aspx?id=35375
- Get the workflow manager, workflow manager BPA, workflow client, and workflow tools (which equates to all available downloads!)
- Try to install the Workflow Manager. It will possibly ask to install the Web Platform Installer tool (if you didn't do this before), allow this by running it.
- This will also install the Workflow Client.
- Once the Workflow Manager Configuration Wizard starts, click Configure Workflow Manager with Custom Settings.
- Check the SQL Server Instance that will be used to create the various workflow databases. In my case, this database is called moon.lc.corp.
- By default, the Farm Management database will be called: WFManagementDB.
- By default, the Instance Management database will be called: WFInstanceManagementDB.
- Scroll down to see the other required settings.
- By default, the Resource Management database will be called: WFResourceManagementDB.
- Choose the Service Account that runs the workflow services. In my case, this is administrator@lc.
- On a dev environment, accept the Auto-generate option to create SSL and outbound signing certificates.
- Enter a certificate generation key.
- Confirm this by entering it again.
- Accept the default Workflow Manager Management Port at 12290.
- Accept the default HTTP port at which Workflow Manager listens for management requests at 12291. Note that this feature should be enabled in production environments, so it's perfectly alright in a dev environment.
- Check Allow Workflow Management over HTTP on this computer.
- Uncheck Enable firewall rules on this computer.
- Accept the default Admin group of BUILTIN\Administrators. This group is granted access to all databases configured as part of the Workflow Manager farm.
- Click Next.
- Now, the Service Bus configuration page opens.
- By default, the Farm Management Database is called SbManagementDB.
- By default, the Gateway Database is called SbGatewayDatabase.
- By default, the Message Container Database is called SBMessageContainer01.
- In the section Configure Service Account check the Use the same service account credentials as provided for Workflow Manager.
- In the section Configure Certificate, check the Use the same certification generation key as provided for Workflow Manager.
- Accept default ports. 9355 for HTTPS Port, SSL accessible port for a Service Bus deployment.
- 9354 for TCP port, Network-accessible port for a Service Bus deployment.
- 9356 for Message Broker Port, used for message broker port communication.
- 9000 for Internal Communication Port Range.
- Uncheck Enable Firewall Rules on this computer.
- In the Configure Admin Group section, again use BUILTIN\Administrators.
- Click Next.
- Click Apply.
- Click Close.
Please note that the Workflow Manager Client needs to be present on every SharePoint node in the farm.
- Configure SharePoint for Azure workflow
- After installing Windows Azure Workflow, you need to use PowerShell to configure the communication between SharePoint 2013 and Windows Azure Workflow. Do the following:
- Press Windows+Q.
- Type SharePoint.
- Click SharePoint 2013 Management Shell.
Execute the following command:
Register-SPWorkflowService -SPSite "http://moon/" -workflowHostUri "http://moon:12291/" -AllowOAuthHttp
Where:
-SPSite refers to one of your site collections.