I have a state machine workflow that runs without problem in SharePoint 2007. I wanted to have this in SharePoint 2010.
I have created the same workflow using Visual Studio 2010, State Machine Workflow for SharePoint 2010 template.
It runs ok, except that the OnWorkflowItemChanged is firing more than one time for each change.
It is the same funtionality... same definition. The only difference is the workflow is for SharePoint 2010.
I created another state machine workflow, a simple one with two or more states that contain an EventDriven(
with OnWorkflowItemChanged) and setState activities. No other activities are defined. No tasks are created.
I have associated this workflow to a Custom List that I created for this test.
The workflow starts when an item is created (or manually), then I modify the item from the list and the OnWorkflowItemChanged is firing more than one time.
The same situation ... the same problem.
I realized that the event is triggered so many times the OnWorkflowItemChanged activity is defined in the workflow.
i.e. If the workflow has defined three OnWorkflowItemChanged, the OnWorkflowItemChanged will be fired three times when an item is modified.
Anyone have an idea how can I fix this problem?
I would appreciate any suggestions to resolve this.
View Complete Post