} else if (action == XMLElementChangeInfo.UPDATED) {
XMLElement parent = changedElement.getParent();
if ((changedElement.toName().equals("Id") && (parent instanceof WorkflowProcess || parent instanceof ActivitySet || parent instanceof Application || parent instanceof Participant || parent instanceof DataField || parent instanceof FormalParameter || parent instanceof Activity || parent instanceof Transition || parent instanceof TypeDeclaration)) || ((changedElement.toName().equals("From") || changedElement.toName().equals("To")) && parent instanceof Transition) || ((parent instanceof Split || parent instanceof Join) && changedElement instanceof XMLAttribute)) {
if (parent instanceof Activity || parent instanceof Transition || parent instanceof Split || parent instanceof Join) {
XMLCollectionElement wpOrAs = XMLUtil.getActivitySet(parent);
if (wpOrAs == null) {
wpOrAs = XMLUtil.getWorkflowProcess(parent);
}
if (parent instanceof Activity) {
updateSpecialInProgress = true;
JaWEManager.getInstance().getXPDLUtils().updateTransitionsOnActivityIdChange((Transitions) wpOrAs.get("Transitions"),
(String) info.getOldValue(),
(String) info.getNewValue());
updateSpecialInProgress = false;
} else if (parent instanceof Transition) {
if (changedElement.toName().equals("Id")) {
updateSpecialInProgress = true;
JaWEManager.getInstance().getXPDLUtils().updateActivityOnTransitionIdChange((Activities) wpOrAs.get("Activities"),
((Transition) parent).getFrom(),
(String) info.getOldValue(),
(String) info.getNewValue());
updateSpecialInProgress = false;
} else if (changedElement.toName().equals("From")) {
updateSpecialInProgress = true;
JaWEManager.getInstance().getXPDLUtils().updateActivitiesOnTransitionFromChange((Activities) wpOrAs.get("Activities"),
((Transition) parent).getId(),
(String) info.getOldValue(),
(String) info.getNewValue());
updateSpecialInProgress = false;
} else {
updateSpecialInProgress = true;
JaWEManager.getInstance().getXPDLUtils().updateActivitiesOnTransitionToChange((Activities) wpOrAs.get("Activities"),
((Transition) parent).getId(),
(String) info.getOldValue(),
(String) info.getNewValue());
updateSpecialInProgress = false;
}