Java.lang.Process.waitFor() IN KNIME

WindowWithJavaSnippet1.knwf (6.9 KB)
I have a workflow. It doesn’t work the way I want it to. It opens an external window in which I will do other manipulations. The problem is that the JAVA-SNIPPET node is closing. I need the JAVA-SNIPPET node not to terminate while I have an external window open.

So that the JAVA-SNIPPET node is immersed only after I manually open the external node that I created with the code…

I understand that it is necessary to put something like this:
Java.lang.Process.waitFor()

But how to do this?

Hi @Nuke_Attokurov,

I am not quite sure if this is possible but if you explain a bit what you try to achieve, we might be able to find a workaround.
It seems that you want to provide some user inputs via the JFrame. For interactivity and user inputs I would like to point you to components. This would be an alternative way to provide user inputs which then can be passed on to another KNIME node or code within a Java Snippet.

Best regards,
Julian

1 Like

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