I’m monitoring for either
- Workflow Task Change
- Workflow Item Change
OnApprovalTaskChanged is being fired, but not onWorkflowItemChanged. Is this a known issue and what could be a workaround?
If i remove ListenActivity, onWorkflowItemChanged gets triggered!
Here is part of my workflow:
Workflow diagram http://img28.imageshack.us/img28/8397/ss20100217113727.png
Solved this issue. This article helped me.
What you must do is to set InitializeWorkflow activity and create new correlation token for that activity. Parent for this correlation token must be set parent sequence activity. Then use this new token on OnWorkflowItemChanged event.
Everything for me works as expected if activities put in following order:
Putting another sequence and initializeworkflow in WHILE loop resulted in OnWorkflowItemChanged being called only first time item changes.