Hello
I am running a KNIME workflow from the command line and need to pass file paths as variables so that the reading and writing nodes use them instead of the values defined in the front-end.
The command I am using is:
cmd
knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION ^
-workflowDir="C:\Users\...\knime-workspace\Peajes_V042" ^
-reset ^
-workflow.variable=entradaAlerta1,"E:\RPA\...\Archivos\Output\122024\PuertoColombia\CrptTransaccionesTotal.xlsx",String ^
-workflow.variable=salidaAlerta1,"E:\RPA\...\Archivos\Output\122024\PuertoColombia\alerta_1",String ^
-workflow.variable=entradaAlerta2,"E:\RPA\...\Archivos\Output\122024\PuertoColombia\CrptExentosGeneral.xlsx",String ^
-workflow.variable=salidaAlerta2,"E:\RPA\...\Archivos\Output\122024\PuertoColombia\alerta_2pruebacmd.xlsx",String
Problem
Even though I have created the corresponding variables in each node (such as Excel Reader or Excel Writer) under the Flow Variables tab, KNIME still uses the paths that were originally defined in the node configuration.
Even if I leave the file path field empty in the user interface, KNIME does not automatically replace it with the variable passed through CMD.
Question
How can I make KNIME use the paths passed via -workflow.variable
in CMD for the reading and writing nodes? Is there any specific configuration I need to change so that the nodes accept the variables instead of the default values?
I appreciate any help or suggestions.