Command forkjoin_cmd = new Command() {
public void execute() {
clear();
initWidget();
ForkNodeWidget fork = new ForkNodeWidget(OozieWorkflowGenerator.this);
fork.setName("Fork_0");
addWidget(fork, 150, 100);
((OozieDiagramController) controller).addConnection(start, fork);
MapReduceActionWidget mr = new MapReduceActionWidget(OozieWorkflowGenerator.this);
mr.setName("MR_0");
addWidget(mr, 300, 30);
((OozieDiagramController) controller).addMultiConnection(fork, mr);
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();
}
};