Windows Workflow Foundation 4 changes several development paradigms from previous versions. For the detailed information, you can refer to:
What's New in Windows Workflow Foundation
Leo Tang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.