The new SharePoint 2013 workflow object model supports advanced scenarios to harness the power of the new SharePoint workflow platform. This sample illustrates ways in which you can use the SharePoint object model to enable these advanced scenarios.

Prerequisites

This sample requires the following:

Using the workflow object model

The new SharePoint 2013 workflow object model supports advanced scenarios to harness the power of the new SharePoint workflow platform. 

The object model allows you to deploy workflows, to manage workflow instances, and supports messaging to workflow instances. 

The SharePoint 2013 workflow object model is available in various forms. There is a SharePoint Server object model, which is a managed API, as well as client object model (or CSOM); there is a JavaScript object model (JSOM), and a SharePoint REST API.

A SharePoint-hosted app for SharePoint can use the SharePoint JSOM and SharePoint REST APIs to access the Workflow object model. A self-hosted and an auto-hosted SharePoint app can also use SharePoint CSOM in addition to SharePoint JSOM and SharePoint REST API to access workflow object model.

For more information about selecting the best APIs for your programming tasks, see Choose the right API set in SharePoint 2013.

The WorkflowOMTest code sample is an example of an interactive SharePoint-hosted app that is using SharePoint workflow JSOM to deploy workflow definitions to both an app web and to a "parent web" (that is, a SharePoint web hosting the app).

Change log

First release. July 16, 2012

Related content