January 12, 2012 03:18 PM

For Workflow Foundation Aficionados

SharePoint Pro
InstantDoc ID #141852
Rating: (0)

Most activities are derived either from HandleExternalEventActivity, which is a basic Windows Workflow Foundation (WF) activity that waits for an event, or from CallExternalMethod, which is an activity that calls a class (called “local service”) that implements an interface. The communication between the WorkflowRuntime host (which in our case is SharePoint) and the workflow follows the usual pattern that is defined by the WF team: First, SharePoint communicates with the workflow by sending events. Then, the workflow invokes SharePoint by calling a method on a dedicated interface that will redirect the call to the SharePoint API.

The interfaces that we will deal with are defined in the Microsoft.SharePoint.Workflow namespace of the Microsoft.SharePoint assembly and are decorated with ExternalDataExchangeAttribute (see the SharePoint Foundation SDK):

  •  ISharepointService
  • IListItemServices
  •  IListItemByKeyService
  •  ITaskServices
  •  IWorkflowModificationservice
  •  IWorkflowWebProvider

Developers who want to grasp the internal working of WF in SharePoint will be interested in these concepts.

Back to main article.

Related Content:

ARTICLE TOOLS

   
Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
   
   

Dan Holme's Viewpoint on SharePoint Blog

Office 365 Plan for Pain

With cloud services, even Office 365, what you don’t know about your cloud service can hurt you,...

SharePoint News and Products

Let SharePoint Be SharePoint: Making Social Collaboration Secure

Hesitant about unleashing SharePoint's social features? SharePoint security vendors aim to help....

Dan Holme's Viewpoint on SharePoint Blog

Microsoft SkyDrive Updates in the News

Microsoft's cloud storage, sharing, and collaboration platform for Windows Live is updated,...