O'Reilly logo

Microsoft® Windows® Workflow Foundation Step by Step by Kenn Scribner

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

Creating a State-Based Workflow Application

If you recall the sample state machine I presented in Chapter 4, Figure 14-1 will look familiar. Yes, it’s the (simplified) vending machine state diagram. I thought it might be interesting to build this state diagram into a true WF state-based workflow and then drive it using a user interface that, given my feeble artistic abilities, models a crude soft drink ("soda") vending machine.

The SodaMachine state diagram

Figure 14-1. The SodaMachine state diagram

Given no user interaction, the soda machine application appears as you see in Figure 14-2. A bottle of soda costs $1.25. While you insert coins, the soda buttons on the left are inactive. ...

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