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

Using the FlowSwitch<T> activity

In the flowchart, we should use the FlowSwitch Activity instead of the Switch<T> activity, which we used in the previous task. In this task, we will create a flowchart workflow using the FlowSwitch<T> activity. This switch activity will operate on a string.

How to do it...

  1. Create a workflow project:

    Create a new Workflow Console Application project and name the project as UsingFlowSwitchActivity.

  2. Author a workflow:

    Open Workflow1.xaml and author a workflow as shown in the following screenshot. Please note that when we drag the Flowswitch activity to the flowchart, we will be shown a dialog to choose the type. In this task, we have chosen String.

    When we add the case links, please do not to add quotation marks ("") around ...

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