graph.addEdge(amount.getOutputPort(0), ifNode.getInputPort(0));
graph.addEdge(ifNode.getControlOutPorts().get(0), approver
.getControlInPort());
graph.addEdge(ifNode.getControlOutPorts().get(1), constYes
.getControlInPort());
graph.addEdge(approver.getOutputPort(0), endif.getInputPort(0));
graph.addEdge(constYes.getOutputPort(0), endif.getInputPort(1));
graph.addEdge(endif.getOutputPort(0), output.getInputPort(0));
// Set the default values
// This needs to be after connection.