Workflows can’t survive without correlation tokens

I know I’ve already mentioned Correlation Tokens in an earlier posting last week, but they’re a bit of an animal and I thought I’d try and explain – more for my own benefit – the what how why where of them.
 

The way a workflow works is that, only a single instance of the workflow is created by the WF host.
All running instances of that workflow share that instance. This has serious implications of how workflows work (known as think threading).
What you have to consider is, how the hell does WF keep the WF straight, if multiple WF instances, share the same WF instance? The answer is, by using CorrelationTokens.
CorrelationTokens is what will let the WF host identify, what activity wants to do what in which workflow.
There are 3 kinds of CorrelationTokens – WorkfFlow, Task, and Modification Correlation Tokens.
Workflow Tokens will apply to the following activities -OnWorkflowActivated, OnWorkflowItemChanged, OnWorkflowItemDeleted, SetState, SendEmail and UpdateAllTasks.
Task Tokens will apply to the following activities -CreateTask, CreateTaskWithContentType, UpdateTask, DeleteTask, CompleteTask, RollBackTask, OnTaskChanged, OnTaskDeleted and OnTaskCreated.Modification Tokens will apply to the following activities -EnableWorkflowModification, OnWorkflowModified.

Advertisements

Workflow templates for Visual Studio 2005

Creating MOSS workflows in VS2005 can be cumbersome.  Whist in VS2008 there’s a useful Wizard to take the pain out of creating custom workflows, in VS2005 you need to complete a number of manual processes.
 
To help move things along, a similar template project has been initiated for developers using VS2005.  The full details can be found on the CodePlex website ….http://www.codeplex.com/wss3workflow

Creating SharePoint 2007 Workflows in Visual Studio 2005

Creating MOSS workflows in VS2005 can be cumbersome.  Whist in VS2008 there’s a useful Wizard to take the pain out of creating custom workflows, in VS2005 you need to complete a number of manual processes.

To help move things along, a similar template project has been initiated for developers using VS2005.  The full details can be found on the CodePlex website ….http://www.codeplex.com/wss3workflow