[BPMN2] EventDefinitionsRef [message #635544] |
Wed, 27 October 2010 06:05  |
Eclipse User |
|
|
|
Hi all,
I'm trying to use the eventDefinitionsRef element in a bpmn2 model. This, because I need to have an EventDefinitions element that is reusable throughout a process model (the intended use for eventDefinitionsRef).
Creating a simple model with the BPMN2-ecore model (generated from a resource with the Bpmn2ResourceFactoryImpl) gives following XML file:
<bpmn:definitions ...>
<bpmn:signalEventDefinition id="SignalDefinitionId" signalRef="signal"/>
<bpmn:process id="newProcessId">
<bpmn:startEvent id="newStartEventId1">
<bpmn:eventDefinitionRef>SignalDefinitionId</bpmn:eventDefinitionRef>
</bpmn:startEvent>
<bpmn:startEvent id="newStartEventId2">
<bpmn:eventDefinitionRef>SignalDefinitionId</bpmn:eventDefinitionRef>
</bpmn:startEvent>
</bpmn:process>
<bpmn:signal id="signal"/>
</bpmn:definitions>
Notice two start events refering to the same EventDefinitions object. However, when trying to load this model again in EMF with the Bpmn2ResourceFactoryImpl, I get following error:
org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'tEventDefinition' is not found or is abstract.
Always referring to the eventDefinitionRef element.
So saving with an EventDefinitionRef element works, but loading doesn't...
Does anyone know what is going wrong here?
Thanks,
Pieter
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05745 seconds