AnsweredAssumed Answered

creating BPMN models from Ecore metamodel

Question asked by conchisanz on Dec 18, 2014
Latest reply on Dec 18, 2014 by conchisanz


I have generated an Eclipse Metamodel from the BPMN schemas used in Activiti. Looking at the metamodel, BPMN elements can be generated in two ways, for instance, an end event can appear as
<endEvent id="endevent1" name="End"/> (what Activiti Designer generates)
but also as
<flowElement xsi:type="tEndEvent" id="endevent1" name="End"/>.

Thus, a piece like this one:
<sequenceFlow id="sequenceflow2" name="" sourceRef="startevent1" targetRef="endevent1"/>
   <endEvent id="endevent1" name="End"/>
    <startEvent id="startevent1" name="End"/></startEvent>

is executable in Activiti engine, whereas next fragment throws Activiti exceptions:

<flowElement xsi:type="tSequenceFlow" id="sequenceflow2" name="" sourceRef="startevent1" targetRef="endevent1"/>
    <flowElement xsi:type="tEndEvent" id="endevent1" name="End"/>
    <flowElement xsi:type="tStartEvent" id="startevent1" name="End"/>

Does it mean that Activiti engine can only understand BPMN elements represented in the first way or could be also possible to use the second one by modifying something in  the namespace declaration?

Conchi Sanz