WWF(Windows Workflow Foundation)
What is workflow and why ?
Workflow is essentially a way of documenting the activities involved in completing a task. WWF is a framework that provides the building blocks that needed to build workflow-based applications.
WWF provides all base components to developers that they need to build any module which can be used to automate processes.
I belive leraning by example, and want to share the same with you.
You must have
3.0 and 3.5 installed in your machine if not dowload from microsoft site.
Sequential Workflow Console Application
Now create a project
1. Select project type Workflow => Sequential Workflow Console Application
2. Rename the Workflow1 to "OfficeEntryWorkflow"
3. Now add two code activities Security check & Office Activity
4. Right click on security check code activity & set executecode property name "OnSecurityCheck"
5. Similarly set executecode property name "OnEnter" for Office Activity
6. Now click on run to see whats written on console.
To see what code is generated behind the workflow i have
attached "OfficeEntryWorkflow.cs" & "Program.cs"