Executing Node.JS via Knime

Hello,

I have a small Node.js utility I am trying to execute from inside knime. It uses parameters. Generally for CMD work I am using python to launch shell commands. However in this case I am trying to to also initiate node.js

Hi,
please have a look at attached workflow. In it I run the node.js process for different JavaScript commands from a JavaSnippet and write the process output to a table. You will have to adjust the code in the Java Snippet to point to your node.js executable. On macOS and Linux you can get that using which node in the terminal.
Kind regards,
Alexander

Call Nodejs.knwf (6.7 KB)

3 Likes

Super helpful! Thank you

1 Like

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