Control knime workflow variables via Linux shell

Hi!

I have created a variable called mvar like shown in this picture

And I run knime 4.4.2 like described in https://www.knime.com/faq#q12:

./knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -nosave -reset -workflowDir=...  -workflow.variable=mvar,9,int

I see a warning in the output and the value of the variable is not used.

WARN     main BatchExecutor      The workflow variable is potentially unused (not defined in workflow): "mvar" (INTEGER)

Does anybody know how to set this variable properly?

Thanks.

Hi @jim108dev,

I think the problem here is that you are creating a flow variable, but what your are using in the comandline is a workflow variable.
image

Best Regards,

Paul

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.