Creating a state machine workflow

So far we learnt how to create a sequential workflow as a list or as a site workflow. We also learnt how to add a custom initiation and task form to the workflow. In this recipe, we will create a state machine workflow that defines a project approval process.

Here are the steps that this workflow will follow through:

  1. Workflow starts automatically on uploading the document to the document library.
  2. A task is created to the manager for the approval.
  3. The manager can either approve, reject, or request more information. In case of rejection, the workflow ends.
  4. On approval from the manager, a task is created to the customer. The customer can either approve, reject or request more information from either the manager or the ...

Get Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook 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.