Install and Configure Workflow for SharePoint 2013

To start with you will need to install and configure SharePoint 2013. For instructions on how to do that click the link below…

https://sharepointv15.wordpress.com/2012/10/29/installing-sharepoint-2013-rtm/

I found the following on Shoel’s Blog and had to include it
You should Know
Before start installing/developing SharePoint Manager you need to know few points:
You should not use SharePoint ‘system account’ to test workflow. If you use ‘system account’ to develop/run workflow, the workflow will fail to run.
You need to make sure User Profile Service (UPS) is running and the user who is running workflow has profile in UPS. Workflow Manager use UPS under the hood.
Instructions on how to configure the UPS
https://sharepointv15.wordpress.com/2012/08/13/sharepoint-2013-user-profiles-ad-import-configuration/

Make sure App Management Service is created and running. You don’t need to configure SharePoint 2013 App settings in the server, just creating App Management service (with proxy) will do.
SharePoint 2013 workflow is declarative – means you can only define workflow in XML. You can’t write any C# code inside workflow as you used to do before. All your custom logic should be put outside of SharePoint, inside WCF Service. Then you will call the service from workflow to implement your custom logic in code.
To register workflow Server with SharePoint, a SharePoint site collection URL is provided (see the section Register Workflow Service with SharePoint later in the post). Apparently it seems, each and every site collection need to be registered with workflow server. But it’s not, registering a single SharePoint site  collection, will enable workflow manager for all SharePoint web applications/site collections.

The rest of the blog Shoel’s post can be found here
http://ranaictiu-technicalblog.blogspot.com/2013/02/sharepoint-2013-workflow-manager.html

After installing and configuring SharePoint you need to install Workflow Manager 1.0. You can download it by clicking the link below…
http://go.microsoft.com/fwlink/?LinkID=252092

Once you download the install right click it and select run as administrator and click OK when the popup comes up. Doing so will result in the Web Platform Installer opening. Click install to begin the install.

wf1

Clicking install will bring up the Prereqs screen. Click I Accept

wf2

Select if you want to use Microsoft Update or not and click continue

wf3

Clicking continue will result in the progress screen popping up.

wf4

After the install is complete you will see the following screen, click Continue

wf5

When the wizard opens you are presented with 3 options. Since I’m alright with default settings I am going to select that.

wf6

Fill in the appropriate settings. Note: you are going to need to be signed in as a user who has dbcreator and security admin rights to the database server.

wf7

Fill in your Cert Generation key and click the right arrow

wf8

You will then be presented with a Summary and a progress bar that will take a few minutes to complete while it sets your Workflow manager. I suggest clicking the copy link at the bottom of the screen, so you have a record of all of your settings. When you are done click the checkbox

After clicking the check box the configuration will begin.

wf9

When this is complete click on the check mark.

Next you need to run the following script using the SharePoint Management Shell, if you are using HTTP. Note replace workflowmanager with your server name and sharepointsite with your sharepoint site name.

Register-SPWorkflowService –SPSite http://sharepointsite –WorkflowHostUri http://workflowmanager:12291 –AllowOAuthHttp

If you are using https you want will use the following

Register-SPWorkflowService –SPSite http://sharepointsite –WorkflowHostUri https://workflowhost:12290

Make sure to create your App management Service if you haven’t already. This can be done by going to the service application screen and selecting App management service from the drop down.

You will also need to go to the Central admin home screen and navigate to Services on server and start both the app management service and the workflow management service.

Finally open a command prompt as an administrator, type in iisreset /noforce and hit enter. After this you should be able to create and run SharePoint 2013 workflows.

Advertisements

About tbithell
I am the Chief Technical Architect of Portals at B2B Technologies, LLC in Atlanta GA. I first started working on SharePoint in 2005, and have built SharePoint portals and developed custom solutions for a wide variety of users. I have a MS in Computer Science and am a SharePoint 2010 MCITP and MCPD. I am very excited about the new version, and will be blogging about it on a regular basis as I explore the newly released Preview and future releases.

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

%d bloggers like this: