CommandExecutioncan be used to run the external program.
Wraps a Java runtime process.
|ExtToolOutputNodeView<T extends ExtToolOutputNodeModel>||
Base class for both output views.
|ExtToolStderrNodeView<T extends ExtToolOutputNodeModel>||
The view showing the output to standard error.
|ExtToolStdoutNodeView<T extends ExtToolOutputNodeModel>||
The view showing the output to standard output.
Object sent to the node views to notify them about a new line that should be displayed.
the different types of view reacting to update notifications.
CommandExecutioncan be used to run the external program. It will pick up its output (to standard out and to standard error out), log it to the log file, and keep the last 500 lines in two buffers. It will try to destroy the process if the user cancels (through the execution context). And it will return the exit code from the external program.
ViewUpdateNoticeevents. One is meant to display output to standard error, the other to standard output.
ExtToolOutputNodeModel. In the execute method use the
CommandExecutionto execute the external program. Register your NodeModel as Observer with it, to see the output in the views during execution (addObserver). Provide the execution context you get in the parameter list. If the execution succeeds (and returns with an OK exit code) save the output through the #setExternalOutput(LinkedList
NodeFactorycreate instances of
ExtToolStdoutNodeView(for a view of the output to standard out) and/or
ExtToolStderrNodeView(for a view of the output to standard error).
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.