A workflow is a series of distinct programming steps or phases. Each step is modeled in WF as an Activity. It has been completely reengineered from the ground up. It is a way to execute business processes and in today’s applications supporting business processes we are frequently using Windows Workflow technologies as the key technical solution.
A key component of workflow design is the use of extensions to configure the environment in which the workflow activities operate, the .NET Framework provides a library of activities and custom activities can also be developed for additional functionality. The Workflow Designer is built using Windows Presentation Foundation (WPF). This enhances the activity designer experience and improves performance for large and complex workflows.
Some of the major criteria for workflows are listed below:
- Visual Representation of process
- Can be dynamically modified at run-time
- Can be long-running
Activities can be assembled visually into workflows using the Workflow Designer, a design surface that runs within Visual Studio. The designer can also be hosted in other applications.
Step 1: Start Visual Studio 2010 and select the New Project and choose Workflow Console Application give name in my case HelloWorld
The application generates a Program.cs file and Workflow1.xaml file which is used for the console application and workflow
static void Main(string args)
Console.WriteLine("Press ENTER to exit");
Step 5: Run the application
Press Enter to exit the application output