Correlation Tokens in SharePoint 2007 Workflows
Tuesday, September 16, 2008, 12:32
This news item was posted in
BPM category and has
0 Comments so far.
I have been working on workflows for the past few days and have found an invaluable piece of resource on the web. Eilene’s post titled Developing Workflows in VS: Part 3 - Five Steps for Developing Your Workflow on Microsoft SharePoint Team Blog, where she outlines what a correlation token is and how three different types of tokens.
Think of a correlation token as an identifier that WF uses to identify and respond to the corresponding objects in SharePoint. For example, if you have in a sequence the activities CreateTask, OnTaskChanged (to wait for the user to edit his task), then CompleteTask, you want these three activities to map to the same task in SharePoint; you do this by specifying the same correlation token in all three.
You will need a token for activities that relate to the workflow itself, a token for activities related to a particular task or item, and a token for each modification. Here is a grouping of activities that need the same correlation token (each group should have its own token):
“Workflow” token:
- OnWorkflowActivated
- OnWorkflowItemChanged
- OhWorkflowItemDeleted
- SetState
- SendEmail
- UpdateAllTasks
|
Task token:
- CreateTask
- CreateTaskWithContentType
- UpdateTask
- DeleteTask
- CompleteTask
- RollbackTask
- OnTaskChanged
- OnTaskDeleted
- OnTaskCreated
|
Modification token:
- EnableWorkflowModification
- OnWorkflowModified
|
This table in itself is worth understanding. It simplified workflows me quite a bit. Development of SharePoint workflows definitely has become easier with Visual Studio 2008. Thank you!
Additional information can be found here:
Related Posts:
Creating Custom Workflows for Sharepoint 2007There are quite a few articles and resources out there that walk developers and newbies alike on how to create custom workflows in Sharepoint 2007.
Webcast Building SharePoint Server 2007 Document Workflows with Visual Studio 2008 (Level 300)If you aren't already part of the Live webcast, then I urge everyone who is interested in developing SharePoint workflows within Visual Studio 2008, to
Creating Workflows for Windows SharePoint Services (Virtual Lab)Here's a very decent virtual lab for using Microsoft Office SharePoint Designer 2007 to design a custom workflow that is triggered on file creation or
SharePoint 2007 Workflows
Walkthrough: Creating Office SharePoint Server 2007 Workflows in Visual Studio 2005
You can create workflows for Microsoft Office SharePoint Server 2007 that incorporate Microsoft Office
Knowledge Series: Developing Workflows in Visual StudioEilene has posted a series of blog articles over the course of two weeks and has done an amazing job.
"So You Want to Develop Custom
You can follow any responses to this entry through the
RSS 2.0 feed.
Both comments and pings are currently closed.
Comments are closed for this Article !