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.

Wes MacDonald's avatar

About Wes MacDonald

Wes MacDonald is a DevOps Consultant for LIKE 10 INC., a DevOps consulting firm providing premium support, guidance and services for Azure, Microsoft 365 and Azure DevOps.

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

Leave a comment

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