recently I've tried to create Basic task workflow with SharePoint designer 2010. I followed tutorial step by step: http://www.sheltonblog.com/video/HiRes_BasicTaskWorkflow.wmv
But at the end the behavior of workflow was not what I expected.
I created one custom list and task list.
When I add item to custom list the workflow is started. Workflow creates some task connected to the just created item. When I change task state to Complete the workflow should finish.
Everything works fine till I create two or more items in custom list, because all my tasks states are changed to Completed when I change task of one item to Completed. After that all workflows at custom list are Completed.
I really don't understand where I did mistake because as I wrote above I followed tutorial step by step.
This is used code:
private void createTask1_MethodInvoking(object sender, EventArgs e)
createTask1.TaskProperties.AssignedTo = "Domain\\user";
View Complete Post