Icon

08. Workflow Control - solution

Workflow Control - Solution
Activity I: Group Looping - Read CurrentDetailData.table data - Start a loop that handles the records for the different products in separate iterations - Write the records for each product into KNIME tables on your local machine. Use the product name as the filename. Activity II: Reading Many Files - Use the List Files node to get the URLs of the files that were created in the previous exercise - Iterate over the list of URLs, access each file in one iteration, and concatenate the data from each iteration back into one KNIMEtable Activity III: CASE Switch Extend the workflow below with a switch that only creates one type of visualization - Create a Single Selection Configuration node with the possible values "scatter" and "bar" - Use the CASE Switch Data (Start) that activates the top/middle branch depending on the selection scatter/bar (Use the "...(index)" flow variable to define the active port)- Combine the outputs of the two branches with the CASE Switch Data (End) node Read CurrentDetailDataGenerate the nameof the file to writeCollect variableand end loopRead the entire tableWrite one file to diskDo one iterationper product valueList all filesin the directoryLoop overfile names(1 per iteration)Combine read fileinto single tableRead fileCombine pathesinto oneSelect baror scatter Table Reader Image To Table Image To Table Table To Image Scatter Plot Bar Chart Create File Name Variable Loop End Table Reader Table Writer Group Loop Start List Files Table Row ToVariable Loop Start Loop End Table Reader CASE SwitchData (Start) CASE SwitchData (End) Single SelectionConfiguration Activity I: Group Looping - Read CurrentDetailData.table data - Start a loop that handles the records for the different products in separate iterations - Write the records for each product into KNIME tables on your local machine. Use the product name as the filename. Activity II: Reading Many Files - Use the List Files node to get the URLs of the files that were created in the previous exercise - Iterate over the list of URLs, access each file in one iteration, and concatenate the data from each iteration back into one KNIMEtable Activity III: CASE Switch Extend the workflow below with a switch that only creates one type of visualization - Create a Single Selection Configuration node with the possible values "scatter" and "bar" - Use the CASE Switch Data (Start) that activates the top/middle branch depending on the selection scatter/bar (Use the "...(index)" flow variable to define the active port)- Combine the outputs of the two branches with the CASE Switch Data (End) node Read CurrentDetailDataGenerate the nameof the file to writeCollect variableand end loopRead the entire tableWrite one file to diskDo one iterationper product valueList all filesin the directoryLoop overfile names(1 per iteration)Combine read fileinto single tableRead fileCombine pathesinto oneSelect baror scatter Table Reader Image To Table Image To Table Table To Image Scatter Plot Bar Chart Create File Name Variable Loop End Table Reader Table Writer Group Loop Start List Files Table Row ToVariable Loop Start Loop End Table Reader CASE SwitchData (Start) CASE SwitchData (End) Single SelectionConfiguration

Nodes

Extensions

Links