I am tryig to run a workflow in Batch mode.
I exported the workflow as zip file and running the below command from the KNIME installation Directory
knime.exe -consoleLog -noexit -reset -nosplash "--launcher.suppressErrors" -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir="D:\KNIME\Workflows"
I am getting the error "Workflow is locked by another KNIME instance"
I have no other KNIME instance open(including GUI)
Attaching the workflow i am trying to run
Do you need to specify the workflow itself? Or is that what the workflows folder is?
I think the parameter workfloeDir takes the workflow directory.
The value i have mentioned ""D:\KNIME\Workflows"" is the directory which contains the workflow (in .zip format. the Same i have attached in my previous message)
-workflowDir only works with un-packed workflows. Use -workflowFile instead.
I have a related question.
My workflow takes inputs.
First the Fodler location in the "List File" node where all the source file are present.
Secondly the CSV file location in the "CSV writer" node which writes the result.
Is there any way i can pass these locations when triggering the workflow in batch mode?
"It's also possible to change the configuration of the workflow through workflow variables. If you create a workflow variable, say parameter of type Integer, configure a node in the workflow so that it uses the value of the variable where you want the user to parameterize the node. If you run the workflow now in the batch mode, you can specify the -workflow.variable=name,value,typeoption to set a new value before the flow gets executed. For example, to set the value 5 to the parameter integer variable, call the batch executor like this:
knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION
-workflowDir="workspace/KNIME_project"" - http://tech.knime.org/faq
If you configure the nodes using workflow variables you can set these in the command.
I already read the approach you have mentioned.
But in my case, i am not able to figure out how to provide the location in "List Files" node throught a flow variable.