Posts

Showing posts from November, 2014

Issues with OnWorkflowItemChanged

Image
I've recently had a few issues with using OnWorkflowItemChanged. 1) I found that adding OnWorkflowItemChanged seems to cause lock ups and delays in my workflow. I decided to use an alternative to OnWorkflowItemChanged or get rid of it from my workflow and utilize SharePoint event receivers. Workflow locks because of OnWorkflowItemChanged: http://blogs.msdn.com/b/yvan_duhamel/archive/2009/11/25/workflow-locks-because-of-onworkflowitemchanged-event-handler.aspx?CommentPosted=true#commentmessage Alternative to OnWorkflowItemChanged: https://www.thorprojects.com/blog/archive/2010/02/22/onworkflowitemchanged-and-workflow-event-delivery-problems.aspx I wasn't able to get the linked alternative to OnWorkflowItemChanged to work in a custom activity, so I wound up creating an event receiver for my list. Here's the code excerpts: Step 1: Create an Event Receiver A basic list event receiver before adding any code looks like below: using System; using System