Hello,
If start this workflow:
with this code, in ItemAdded method:
var workflowAssociation = list.WorkflowAssociations.Cast<SPWorkflowAssociation>().FirstOrDefault(wf => wf.Name == "mywf");
site.WorkflowManager.StartWorkflow(item, workflowAssociation, workflowAssociation.AssociationData, SPWorkflowRunOptions.Asynchronous);
then, the workflow actions will work out a few times. Workflow history will look like this (actions work out 4 times):
Date Occurred Event Type User ID Description
5/12/2013 5:32 PM Comment START
5/12/2013 5:32 PM Comment System Account Waiting on Title
5/12/2013 5:32 PM Comment START
5/12/2013 5:32 PM Comment System Account Waiting on Title
5/12/2013 5:32 PM Comment START
5/12/2013 5:32 PM Comment System Account Waiting on Title
5/12/2013 5:32 PM Comment START
5/12/2013 5:32 PM Comment System Account Waiting on Title
How to resolve this?