WORKFLOW IN APPS FOR SHAREPOINT

For developers building Apps for SharePoint, whether SharePoint-hosted, Provider-hosted, or Autohosted, Visual Studio provides the tooling for including SharePoint workflows as a part of your solution. Therefore, you can augment your Apps for SharePoint with the workflow capabilities to encapsulate the business processes you want to deliver with your solutions.

In this Try It Out you learn to include a workflow in your app for SharePoint that shows a pattern for an expense approval workflow structure.

TRY IT OUT: App for SharePoint with a Workflow (C15WFAppForSP.zip)
This exercise uses Office 365 but you can use your test on-premises SharePoint setup as well.
1. Run Visual Studio 2012 as Administrator. Select New Project.
2. In the New Project dialog, expand the Templates ⇒ Visual C# ⇒ Office/SharePoint ⇒ Apps nodes. Select App for SharePoint 2013 and provide the name C15WFAppForSP. Click OK.
3. In the Specify the app for SharePoint dialog, set the SharePoint site URL to which you will deploy the app, and choose SharePoint-hosted as the host for your App for SharePoint. Click Finish.
4. In the Solution Explorer, right-click the project node, and select Add ⇒ New item. In the Add New Item dialog, select Site Column, name it Manager, and click Add.
5. In the Solution Explorer, right-click the project node, and select Add ⇒ New item. In the Add New Item dialog, select Site Column, name it Disposition, and click Add.
6. In the Solution Explorer, ...

Get Beginning SharePoint 2013 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.