Icon

Switch dependent on file availability

Corresponding Forum Posthttps://forum.knime.com/t/workflow-switch-dependent-upon-files/58933 AssumptionIf file exists, you want to work with it's content Initial dataList files in folderActivate fallbackif file does not existReplace by nodes,component or Call WorkflowSimulatenon-existing fileby executing thisThen reset andexecute the Try-Catch LoopTOPtable file existsTOPFile ExistsBOTTOMNo files foundIn case next nodeshave no inputTest Data Generator Create Temp Folder Table Writer List Files/Folders Table Reader Catch Errors(Data Ports) Active BranchInverter Try (Data Ports) Empty Table Creator DeleteFiles/Folders Row Splitter Empty Table Switch Count rows(variable) Count rows End IF Corresponding Forum Posthttps://forum.knime.com/t/workflow-switch-dependent-upon-files/58933 AssumptionIf file exists, you want to work with it's content Initial dataList files in folderActivate fallbackif file does not existReplace by nodes,component or Call WorkflowSimulatenon-existing fileby executing thisThen reset andexecute the Try-Catch LoopTOPtable file existsTOPFile ExistsBOTTOMNo files foundIn case next nodeshave no inputTest Data Generator Create Temp Folder Table Writer List Files/Folders Table Reader Catch Errors(Data Ports) Active BranchInverter Try (Data Ports) Empty Table Creator DeleteFiles/Folders Row Splitter Empty Table Switch Count rows(variable) Count rows End IF

Nodes

Extensions

Links