Ayuda con la creación de un workflow ejecutable .bat

Hola! Quiero usar el .bat para ejecutar un workflow pero no entiendo FAQ|KNIME Q12. Instalé KNIME desde la opción espejo (no el zip.). Hasta el momento, esto es lo que he logrado:

@echo off

rem Set the path to your KNIME installation
set KNIME_PATH=C:\Users\pablovick\AppData\Local\Programs\KNIME

rem Prompt the user to enter the path to the KNIME executable
set knime=C:\Users\pablovick\AppData\Local\Programs\KNIME\knime.exe

rem Prompt the user to enter the path to the workflow file
set WORKFLOW_PATH=C:\Users\pablovick\knime-workspace\Currency_Extraction3

rem Launch KNIME and execute the workflow
"%knime%" -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir= “%WORKFLOW_PATH%”

pause

Dejé el -consoleLog para copiar y pegar lo que me sale. Y esto es lo que obtengo:

ERROR    main BatchExecutor      Workflow directory '' is not a directory.
org.knime.core.node.workflow.BatchExecutor$IllegalOptionException: Workflow directory '' is not a directory.
        at org.knime.core.node.workflow.BatchExecutor.handleCommandlineArgument(BatchExecutor.java:551)
        at org.knime.core.node.workflow.BatchExecutor.parseConfigFromArguments(BatchExecutor.java:464)
        at org.knime.core.node.workflow.BatchExecutor.processArguments(BatchExecutor.java:445)
        at org.knime.core.node.workflow.BatchExecutor.<init>(BatchExecutor.java:415)
        at org.knime.core.node.workflow.BatchExecutor.mainRun(BatchExecutor.java:672)
        at org.knime.product.headless.KNIMEBatchApplication.runBatchExecutor(KNIMEBatchApplication.java:137)
        at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:90)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
ERROR    main BatchExecutor      Workflow directory '' is not a directory.
org.knime.core.node.workflow.BatchExecutor$IllegalOptionException: Workflow directory '' is not a directory.
        at org.knime.core.node.workflow.BatchExecutor.handleCommandlineArgument(BatchExecutor.java:551)
        at org.knime.core.node.workflow.BatchExecutor.parseConfigFromArguments(BatchExecutor.java:464)
        at org.knime.core.node.workflow.BatchExecutor.processArguments(BatchExecutor.java:445)
        at org.knime.core.node.workflow.BatchExecutor.<init>(BatchExecutor.java:415)
        at org.knime.core.node.workflow.BatchExecutor.mainRun(BatchExecutor.java:672)
        at org.knime.product.headless.KNIMEBatchApplication.runBatchExecutor(KNIMEBatchApplication.java:137)
        at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:90)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)

Agradezco muchísimo la ayuda.

You have to remove the blank:
Tienes que eliminar el espacio en blanco:

-workflowDir="%WORKFLOW_PATH%"

4 Likes

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