The node property is used to refer to the nodes in the current flow. The
following flow script provides an example:
stream = modeler.script.stream()
annotation = stream.getPropertyValue("annotation")
annotation = annotation + "\n\nThis flow is called \"" + stream.getLabel() + "\" and
contains the following nodes:\n"
for node in stream.iterator():
annotation = annotation + "\n" + node.getTypeName() + " node called \"" + node.getLabel()
+ "\""
stream.setPropertyValue("annotation", annotation)
Copy to clipboardCopied to clipboard
The previous example uses the node property to create a list of all nodes in
the flow and write that list in the flow annotations. The annotation produced looks like this:
This flow is called "druglearn" and contains the following nodes:
type node called "Define Types"
derive node called "Na_to_K"
variablefile node called "DRUG1n"
neuralnetwork node called "Drug"
c50 node called "Drug"
filter node called "Discard Fields"
Copy to clipboardCopied to clipboard
Flow properties are described in the following table.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.