Package org.apache.oozie.tools.workflowgenerator.client.widget.control

Examples of org.apache.oozie.tools.workflowgenerator.client.widget.control.JoinNodeWidget


                    ForkNodeWidget fork = new ForkNodeWidget(OozieWorkflowGenerator.this);
                    fork.setName("Fork_".concat(nodeCount.get(NodeType.FORK) != null ? nodeCount.get(NodeType.FORK)
                            .toString() : "0"));
                    addWidget(fork, 30 + Random.nextInt(30), 30 + Random.nextInt(30));

                    JoinNodeWidget join = new JoinNodeWidget(OozieWorkflowGenerator.this);
                    join.setName("Join_".concat(nodeCount.get(NodeType.JOIN) != null ? nodeCount.get(NodeType.JOIN)
                            .toString() : "0"));
                    addWidget(join, 90 + Random.nextInt(30), 30 + Random.nextInt(30));

                }
                else if (name.equals("Decision")) {
View Full Code Here


                PigActionWidget pig = new PigActionWidget(OozieWorkflowGenerator.this);
                pig.setName("Pig_0");
                addWidget(pig, 300, 200);
                ((OozieDiagramController) controller).addMultiConnection(fork, pig);

                JoinNodeWidget join = new JoinNodeWidget(OozieWorkflowGenerator.this);
                join.setName("Join_0");
                addWidget(join, 450, 100);
                ((OozieDiagramController) controller).addConnection(mr, join);
                ((OozieDiagramController) controller).addConnection(pig, join);
                ((OozieDiagramController) controller).addConnection(join, end);

                fork.updateOnSelection();
                join.updateOnSelection();
                mr.updateOnSelection();
                pig.updateOnSelection();
            }
        };
View Full Code Here

TOP

Related Classes of org.apache.oozie.tools.workflowgenerator.client.widget.control.JoinNodeWidget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.