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();
}
};