Icon

06 Switches

06 Switches
Exercise: SwitchesThe workflow below accesses survey data. One bar chart shows the count of employed participantsby age group, one bar chart shows the count of unemployed participants by gender, and one pie chartshows the average age of "not in labor force" participants.1.1) Create a Single Selection Configuration node with three options: "Employed", "Unemployed", and"Not in labor force"1.2) Encode the flow variable values Employed, Unemployed, and Not in labor force into ports 0, 1, or2, respectively, with the Rule Engine Variable node1.3) Use an CASE switch to separate the three workflow branches. Control the active port by the flowvariable with the possible values0, 1, or 2.1.4) Encapsulate the nodes into a component. Select Determine Visualization for Employment Statusin the component's configuration dialog. Execute and open the component's view. Do you see theright graph? WA_American_Time_Use_Survey.csv CSV Reader Determine Visualizationfor Employment Status Exercise: SwitchesThe workflow below accesses survey data. One bar chart shows the count of employed participantsby age group, one bar chart shows the count of unemployed participants by gender, and one pie chartshows the average age of "not in labor force" participants.1.1) Create a Single Selection Configuration node with three options: "Employed", "Unemployed", and"Not in labor force"1.2) Encode the flow variable values Employed, Unemployed, and Not in labor force into ports 0, 1, or2, respectively, with the Rule Engine Variable node1.3) Use an CASE switch to separate the three workflow branches. Control the active port by the flowvariable with the possible values0, 1, or 2.1.4) Encapsulate the nodes into a component. Select Determine Visualization for Employment Statusin the component's configuration dialog. Execute and open the component's view. Do you see theright graph? WA_American_Time_Use_Survey.csv CSV Reader Determine Visualizationfor Employment Status

Nodes

Extensions

Links