O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

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

Chapter 2. Built-in Flow Control Activities

In this chapter we will cover:

  • Using the Foreach Activity
  • A number guessing game in Sequence
  • A number guessing game in a flowchart
  • Using the InvokeMethod activity
  • Using the Switch<T> activity in Sequence workflows
  • Using the FlowSwitch<T> activity
  • Using the Parallel activity
  • Using ParallelForEach<T> activity
  • Using the Pick activity
  • Handling errors

Introduction

The Flow is the center of workflow itself, and how to control the Flow is what we will see in this chapter. WF is a lot like an imperative programming language such as C# when it comes to flow control; we have many similar concepts in WF4 such as "if-else", "foreach", "switch", "try-catch", and so on. Additionally, there are some other flow control activities ...

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