Jan 29, 2010

Workflow problem with OnWorkflowItemUpdated

If you have an OnWorkflowItemUpdated activity, it can cause conflicts with other tasks and activities in your Sharepoint workflow.

Solution here: http://blogs.msdn.com/yvan_duhamel/archive/2009/11/25/workflow-locks-because-of-onworkflowitemchanged-event-handler.aspx

To workaround:
  1. Create a new SequenceActivity
  2. Create an InitializeWorkflow activity inside the SequenceActivity with a new correlation token scoped to the SequencyActivity
  3. Move the OnWorkflowItemUpdated activity after the InitializeWorkflow activity and set its correlation token to the same as the InitializeWorkflow activity.

No comments:

Post a Comment