@Override
protected void updateTransitionsFromXml() {
super.updateTransitionsFromXml();
if (getChildren().size() > 1) {
IDOMElement input = getInput();
if (input != null && input.hasChildNodes()) {
IDOMElement prev = null;
IDOMElement next = null;
NodeList children = input.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i);
if (child instanceof IDOMElement) {
prev = next;
next = (IDOMElement) child;
}
if (prev != null && next != null) {
Activity prevActivity = null;
Activity nextActivity = null;
List<Activity> parts = getChildren();
for (Activity activity : parts) {
if (prev.equals(activity.getInput())) {
prevActivity = activity;
}
if (next.equals(activity.getInput())) {
nextActivity = activity;
}
}
if (nextActivity != null && prevActivity != null) {
new ImplicitTransition(prevActivity, nextActivity, null);