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
Install Visual Studio and the extensions for workflow on any server where SharePoint Foundation 2010 is installed.
Create a new Sequential Workflow Library project
Add the following references:
Microsoft.SharePoint
Microsoft.SharePoint.WorkflowActions
Include the attached cs file in the project.
Compiled the project with assembly signing on.
Copy the resulting DLL to the Global Assembly Cache (GAC).
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>
Create, install, and activate a new Sequential workflow project that uses the workflow service via HandleExternalEvent
iisreset