How to know when my workflow finished


I have a question about of execute a workflow in batch mode. I have the next command line:

knime.exe  -application org.knime.product.KNIME_BATCH_APPLICATION  -nosplash -nosave -reset workflowFile=D:\knime-workspace\


The above command works fine, but I want to know when it finishes executing without using the - consoleLog and Send Email Node. 


I want when I finish the workflow notify me in a screen message. for example in a MsgBox.



You can use a java snippet for it. Just use the following code:

// Your custom imports:
import javax.swing.JOptionPane;


// Enter your code here:
JOptionPane.showMessageDialog(null, "Your workflow is finished!!! :-)"); 

1 Like

Thanks so much! :D :D :D :D

Hi Iris,

for me, your suggestion works in desktop mode, but not in batch mode.
The issue seems to be that for some reason the same workflow throws an exception in batch mode, with the following error:

WARN KNIME-Worker-1-Java Snippet 0:1660 JavaSnippetCellFactory Evaluation of java snippet failed for row "Row0".The exception is caused by line 33 of the snippet.

line 33 is: JOptionPane.showMessageDialog(null, "Your workflow is finished!!! :-)");

Do you have any ideas how to tackle this?


no need, thanks!

I’m using a Java Snippet node with the following line:
logWarn("message to be displayed");

and the message shows up in the console.
‘Dead end nodes’ are also executed, so you can create ‘status messages’

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