I have created a workflow in Visual Studio which contains a replicator which creates multiple tasks for approval. The replicator contains a sequence activity which is consisted of createTask
, a while
loop with onTaskChanged
and a completeTask
elements.
My workflow is behaving super strange. The replicator_Initialized
properly initializes the InstanceData
which is an IList
of strings (i.e. the approvers), the replicator_ChildInitialized
also behaves as expected, the createTask_MethodInvoking
in the sequence activity executes fine and even the loop's isComplete
method verifies for each of the tasks that they are not completed. But then, the onTaskChanged_Invoked
never gets called and same goes for completeTask_MethodInvoking
. In other words, I never get the chance to go to the workflow tasks list and approve the tasks. The workflow crashes and burns afterwards because I am trying to reference the tasks' AfterProperties
which are all null
of course because the after never happened.
Has anyone encountered anything similar? How do I fix or even analyze this? For example, I have no idea where to put the break point because it appears that the workflow just skips some parts. Thanks for all the help, I really appreciate it.