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 ...

Get Microsoft Windows Workflow Foundation 4.0 Cookbook 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.