Simple Hello World using Windows Workflow Foundation 4.0

Posted: April 16, 2010 in C#, Programming
Tags: , ,

Here i will create a simple “Hello World” application using Windows Workflow Foundation 4.0 or WF 4.0. Oh yeah, what is Windows Workflow Foundation ? Windows Workflow Foundation is a Microsoft technology for defining, executing, and managing workflows, the detail about Workflow Foundation is here.

First we will create new project, choose “Workflow Console Application” and name it “HelloWorkflow”

You will see workflow designer and toolbox tab in the left, just drag WriteLine Primitive Activity

Add Text with a string like “Hello World ! It is a Great Day !”

In your Program.cs must be like this :

using System;
using System.Linq;
using System.Activities;
using System.Activities.Statements;

namespace HelloWorkflow

    class Program
        static void Main(string[] args)
            WorkflowInvoker.Invoke(new Workflow1());

And the last… run the program :

  1. […] In this tutorial, i will use exiting code that already created here. […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s