Icon

Component Demo - Replace Path Variable

Component Demo - Replace Path Variable

This workflow demonstrates the use of the "Replace Path Variable" component.

It's purpose is to replace (or newly create) a path variable with a given name. If the path variable of that name already exists in the workflow, the component will replace it with the new value specified here.

This is something that you cannot readily do in a standard workflow, and makes use of the way that a new "flow variable branch" can be created within a component and then merged with the original flow, thus replacing the existing variable of the same name.

This component came about as the result of the following forum thread:

https://forum.knime.com/t/overwrite-path-variable-how-to/47744?u=takbb

Sample dataWrites file1.csvusing filename_pathvariablecreates a Path variablefilename_path"c:\temp\file1.csv"Writes file2.csvusing filename_pathvariableREPLACES path variablefilename_path"c:\temp\file2.csv"Data Generator CSV Writer Replace PathVariable CSV Writer Replace PathVariable Sample dataWrites file1.csvusing filename_pathvariablecreates a Path variablefilename_path"c:\temp\file1.csv"Writes file2.csvusing filename_pathvariableREPLACES path variablefilename_path"c:\temp\file2.csv"Data Generator CSV Writer Replace PathVariable CSV Writer Replace PathVariable

Nodes

Extensions

Links