I got a question regarding an automatic execution of my workflow after I open it. I do try to open the worflow as a batch run. That works totally fine and opens knime with the needed workflow. But instead of resetting the workflow and automatically execute it, knime opens the workflow only in a second tab and displays me first the tab “Welcome to KNIME Analytics Platform”. After I close that tab, Knime loads the needed workflow but doesn’t execute it.
Hey @qqilihq , Yeah, I was a bit confused about this point, doing a “batch run” and ending up in the UI, I am not sure I understand either.
@PatrickP_MTU , can you explain how you are doing this “batch run”, just in case it is not what we think it is? We usually understand that it means executing a workflow via the command line, and this should not open the GUI
Hi community. thanks for your replies so far!
Well, I do open the batch run via a command line like this: “[…]lprogs\Knime-AP_E0410\start.bat” -consoleLog -noexit -nosplash -nosave -reset -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir="[…]\Knime\MySQL_Connector"
Hi @bruno29a thanks for your answer. Unfortounatly I can´t change the start.bat because I would need admin rights. But now I know how I could solve the problem. So do I understand right, that if I change %1 to %* the batch run should start without opening the GUI?! That way the workflow would also reset and execute automatically?
The start.bat is just a wrapper pointing to the proper location of your Knime executable, but currently is failing to pass all arguments properly (%1 vs %*), so you can still call the Knime executable directly since you know where it is from what the start.bat’s code
Hey @bruno29a that was just one great hint! It works absolutly fine now. Such an easy solution. I didn´t notice, that the start.bat shows me the proper location of the knime executable.
Thanks a lot again!