Hi There, Thanks for sharing this excellent post, it was very much useful for me. I did created one workflow with the steps you mentioned. but i have got an error.

Can I request you if you could send me the sample code so that i can try it out opening in my solution. Tx Labhesh

 

-====

The error which i am gettingL:

13/2010 15:11:41.92 w3wp.exe (0x14F4)                                0x0B30 Windows SharePoint Services     Workflow Infrastructure                 936l      High      Engine RunWorkflow: System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation.     at System.Workflow.Runtime.WorkflowDefinitionDispenser.ValidateDefinition(Activity root, Boolean isNewType, ITypeProvider typeProvider)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.MruCache.GetOrGenerateDefinition(Type type, String xomlText, String rulesText, Byte[] md5Codes, Boolean initForRuntime, Boolean& exist)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime)     at System.Workflow.Runtime.WorkflowRuntime.Initializ...          

  1. 02/13/2010 15:11:41.92* w3wp.exe (0x14F4)                                0x0B30 Windows SharePoint Services     Workflow Infrastructure                 936l      High      ...eExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)     at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId)     at System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(Type workflowType, Dictionary`2 namedArgumentValues, Guid instanceId)     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e)     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostServi... 
  2. 02/13/2010 15:11:41.92* w3wp.exe (0x14F4)                                0x0B30 Windows SharePoint Services     Workflow Infrastructure                 936l      High      ...ce host, SPWorkflow workflow,