Search in sources :

Example 1 with AlfrescoStartEvent

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;
}
Also used : AlfrescoStartEvent(org.activiti.bpmn.model.alfresco.AlfrescoStartEvent) StartEvent(org.activiti.bpmn.model.StartEvent) AlfrescoStartEvent(org.activiti.bpmn.model.alfresco.AlfrescoStartEvent)

Aggregations

StartEvent (org.activiti.bpmn.model.StartEvent)1 AlfrescoStartEvent (org.activiti.bpmn.model.alfresco.AlfrescoStartEvent)1