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.
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. ...
Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.