I've been following Robert Shelton's tutorial on creating an approval workflow, but ran into an issue I'm having a hard time resolving.ÃÂ ÃÂ After the approval task is created, we create a While loop and wait for a private member, 'taskCompleted', to equalÃÂ trueÃÂ before completing theÃÂ task.ÃÂ Within the while loopÃÂ is an OnTaskChanged that should set taskComplete = true and exit the loop.ÃÂ Once we exit the loop, CompleteTask runs and finishes my workflow.
In other words, this is what the flow looks like:
CreateTaskWithContentType -> OnTaskCreated -> WhileActivity -> OnTaskChanged -> CompleteTask
I'm debugging my workflow in VS, but never hit the WhileActivity->OnTaskChanged section.ÃÂ I tried disabling the OnTaskCreated step and now find that I do hit the WhileActivity step when initially starting the workflow.ÃÂ However, once the content approver returns to the workflow and clicks either Approve or Reject (in either case, we run a "SPWorkflowTask.AlterTask" method), OnTaskChanged doesn't fire.
Any ideas what the issue is or how to further investigate?
Tks in advance
View Complete Post