You can set properties for specific nodes encapsulated within a SuperNode by
accessing the child diagram within the SuperNode. For example, you can create a Derive node and set
the mode and field name extension as follows:
If you want to create a SuperNode and its content from scratch, you can do
that in a similar way by creating the SuperNode, accessing the child diagram, and creating the nodes
you want. You must also ensure that the nodes within the SuperNode diagram are also linked to the
input and/or output connector nodes. For example, if you want to create a process SuperNode:
process_supernode = modeler.script.stream().createAt("process_super", "My SuperNode", 200, 200)
childDiagram = process_supernode.getChildDiagram()
filternode = childDiagram.createAt("filter", "My Filter", 100, 100)
childDiagram.linkFromInputConnector(filternode)
childDiagram.linkToOutputConnector(filternode)
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.