OutputNode output = (OutputNode) workflow.addNode(this.outputComponent);
output.setConfiguredName("output");
output.setPosition(new Point(720, 40));
// Connect ports
graph.addEdge(inputX.getOutputPort(0), adder.getInputPort(0));
graph.addEdge(inputN.getOutputPort(0), arrayGenerator.getInputPort(0));
graph.addEdge(arrayGenerator.getOutputPort(0), split.getInputPort(0));
graph.addEdge(split.getOutputPort(0), adder.getInputPort(1));
graph.addEdge(adder.getOutputPort(0), merge.getInputPort(0));
graph.addEdge(merge.getOutputPort(0), output.getInputPort(0));