use of org.activiti.bpmn.model.alfresco.AlfrescoStartEvent in project Activiti by Activiti.
the class StartEventXMLConverter method convertXMLToElement.
@Override
protected BaseElement convertXMLToElement(XMLStreamReader xtr, BpmnModel model) throws Exception {
String formKey = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_FORM_FORMKEY);
StartEvent startEvent = null;
if (StringUtils.isNotEmpty(formKey)) {
if (model.getStartEventFormTypes() != null && model.getStartEventFormTypes().contains(formKey)) {
startEvent = new AlfrescoStartEvent();
}
}
if (startEvent == null) {
startEvent = new StartEvent();
}
BpmnXMLUtil.addXMLLocation(startEvent, xtr);
startEvent.setInitiator(xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_EVENT_START_INITIATOR));
startEvent.setFormKey(formKey);
parseChildElements(getXMLElementName(), startEvent, model, xtr);
return startEvent;
}
Aggregations