public void resolve(ProcessDefinitionImpl processDefinition, Parse parse) {
String to = XmlUtil.attribute(transitionElement, "to", true, parse);
if (to!=null) {
ActivityImpl destination = (ActivityImpl) processDefinition.findActivity(to);
if (destination!=null) {
destination.addIncomingTransition(transition);
} else {
parse.addProblem(XmlUtil.errorMessageAttribute(transitionElement, "to", to, "doesn't reference an existing activity name"), transitionElement);
}
}
}