Share via


Creating Pluggable Workflow Services

Applies to: SharePoint Foundation 2010

Creating a pluggable workflow service in Microsoft SharePoint Foundation 2010 allows a developer to create a communication channel between a running workflow instance and an external application or component.

Set Up a Workflow Service Project

  1. Install Visual Studio and the extensions for workflow on any server where SharePoint Foundation 2010 is installed.

  2. Create a new Sequential Workflow Library project

  3. Add the following references:

    • Microsoft.SharePoint

    • Microsoft.SharePoint.WorkflowActions

  4. Include the attached cs file in the project.

  5. Compiled the project with assembly signing on.

  6. Copy the resulting DLL to the Global Assembly Cache (GAC).

  7. Add a workflow service entry to web.config file, as shown in this example.

    <WorkflowService Assembly="WorkflowService, Version=1.0.0.0, 
                     Culture=neutral, 
                     PublicKeyToken=8b3b67b558e6a72f" 
                     Class="Microsoft.Test.PlugChannels.LinksService">
    </WorkflowService>
    
  8. Create, install, and activate a new Sequential workflow project that uses the workflow service via HandleExternalEvent

  9. iisreset