For details :
Click Here
Introduction
This article describes how to create and run a State Machine Workflow in Windows Workflow Foundation (formerly WWF, or just WF) which comes bundled with .NET Framework 3.0 and above.Before we get started, if you are new to WF and .NET Framework 3.0, I think you'd better take a look at some articles about WF.Here are some useful links:
http://wf.netfx3.com/
http://msdn2.microsoft.com/en-us/netframework/aa663322.aspx