Chapter 4. Passing Arguments

In Chapter 1, I showed you how to define variables and arguments that will be used by the workflow. Using a coding analogy, variables are like class members, and arguments are similar to method parameters. You used variables in the last three chapters. In this chapter, you'll define both input and output arguments and pass them between the workflow and the host application.

Creating a New Solution

Start by creating a new Workflow Console Application, as shown in Figure 4-1. Name the project OrderProcess, and the solution Chapter04. You will be using the same project name in Chapters 5-7.

Creating a new sequential workflow project

Figure 4-1. Creating a new sequential ...

Get Beginning WF: Windows Workflow in .NET 4.0 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.