O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A number guessing game using a flowchart

The flowchart was not invented in WF4. On the contrary, this type of diagram has a long history. The flowchart was first introduced by Frank Gilbreth in 1921 and he created a tool to use the flowchart in an industrial engineering curriculum.

As a programmer, you may already have experience in using a flowchart to draw an algorithm or process.

In this task, we will create a number guessing game using a flowchart. This task will also demonstrate the usage of the FlowDecision activity.

How to do it...

  1. Create a workflow project:

    Create a Workflow Console Application and name it GuessNumberGameInFlowChart.

  2. reate a ReadNumberActivity to receive the guess number:

    Create a new code file, name it ReadNumberActivity.cs ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required