return true;
}
public void parseTransitions(Element element, ActivityImpl activity, Parse parse, JpdlParser jpdlParser) {
List<Element> transitionElements = XmlUtil.elements(element, "transition");
UnresolvedTransitions unresolvedTransitions = parse.findObject(UnresolvedTransitions.class);
for (Element transitionElement: transitionElements) {
String transitionName = XmlUtil.attribute(transitionElement, "name", false, parse);
Element timerElement = XmlUtil.element(transitionElement, "timer");
if (timerElement!=null) {
if (transitionName!=null) {
TimerDefinitionImpl timerDefinitionImpl = jpdlParser.parseTimerDefinition(timerElement, parse, activity);
timerDefinitionImpl.setSignalName(transitionName);
} else {
parse.addProblem("a transition name is required when a timer is placed on a transition", element);
}
}
TransitionImpl transition = activity.createOutgoingTransition();
transition.setName(transitionName);
unresolvedTransitions.add(transition, transitionElement);
jpdlParser.parseOnEvent(transitionElement, parse, transition, Event.TAKE);
}
}