SharePoint Workflow: While/OnTaskChanged not working


I came across this while developing workflows in SharePoint.  The SharePoint 2007 environment I develop in is MOSS 2007 w/SP1 and the Infrastructure Update and when a workflow was created with the following activities all processing would stop and the workflow would not wake up.

image

What was happening is the workflow would enter the While activity to wait for the task to be modified.  If the task was edited and marked as “Completed” and saved the workflow just would not continue.

I had noticed though in some cases during my workflow process the While activity would work.  If I added a DelayForActivity and introduced a 5 minute delay before the While activity everything worked as expected.

image

Hope this helps someone else out there building workflows for SharePoint 2007.

About Wes MacDonald

Wes MacDonald is a Developer Technologies MVP, PSD, MCT and a Principal Consultant for LIKE 10 INC., a DevOps Consulting firm providing premium support, guidance and services for Azure and VSTS.

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: