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.
Create a new Workflow Console Application project and name the project as
UsingFlowSwitchActivity
.Author a workflow:
Open
Workflow1.xaml
and author a workflow as shown in the following screenshot. Please note that when we drag theFlowswitch
activity to the flowchart, we will be shown a dialog to choose the type. In this task, we have chosenString
.When we add the case links, please do not to add quotation marks ("") around the case branch. Because the
Flowswitch
activity will not only operate on strings but also other types.Run it:
Set
UsingFlowChartActivity
as StartUp project. Press CTRL+F5 to build and run the workflow without debugging. A...