addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
}
}
else if (name.equals("Kill")) {
if (kill == null) {
KillNodeWidget w = new KillNodeWidget(OozieWorkflowGenerator.this);
w.setName("Kill");
kill = w;
addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
}
}
else if (name.equals("Fork/Join")) {
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")) {
DecisionNodeWidget w = new DecisionNodeWidget(OozieWorkflowGenerator.this);
w.setName("Decision_".concat(nodeCount.get(NodeType.DECISION) != null ? nodeCount.get(
NodeType.DECISION).toString() : "0"));
addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
}
}
});