public void parse(XMLStreamReader xtr, BpmnModel model) throws Exception {
String signalId = xtr.getAttributeValue(null, ATTRIBUTE_ID);
String signalName = xtr.getAttributeValue(null, ATTRIBUTE_NAME);
Signal signal = new Signal(signalId, signalName);
String scope = BpmnXMLUtil.getAttributeValue(ATTRIBUTE_SCOPE, xtr);
if (scope != null) {
signal.setScope(scope);
}
BpmnXMLUtil.addXMLLocation(signal, xtr);
BpmnXMLUtil.parseChildElements(ELEMENT_SIGNAL, signal, xtr, model);
model.addSignal(signal);
}
}