The Basics of Creating a Workflow

To get started with WF it is often easier to create a simple workflow to help better understand the core concepts. In this section, you create a workflow project that takes a number and determines if the number is odd or even and then returns an appropriate message. Of course you could write this code in a couple lines and do not need a workflow to express something so simple. However, keeping this example simple helps illustrate how workflows are created, hosted, and executed. We cover a more real-world example later in this chapter.

Creating a Basic XAML-Based Workflow

In this example, you create a single project to serve as the workflow library, the host, and the client. Note that this sample is available ...

Get Microsoft® Visual Studio® 2010 Unleashed 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.