O'Reilly logo

Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# by K. Scott Allen

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

State Machines in Windows Workflow

The state machine in the screenshot above is quite simple, and most systems will require a more sophisticated model. However, the concepts introduced in the screenshot (states, events, and transitions) are the same concepts we use to build state machine workflows in Windows Workflow.

In WF, the State activity represents a state in a state machine workflow. As events arrive, the workflow will transition between State activities. A state machine workflow must specify an initial state, which will be the starting state for the workflow. A state machine workflow can optionally specify a completed state. The workflow will conclude after it transitions to the completed state.

An EventDriven activity represents an event ...

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