|[ATL] global elements in xmi file [message #549288]
||Mon, 26 July 2010 11:36
Registered: July 2010
I'm trying to use the BPMN2.0 metamodel ( http://www.eclipse.org/projects/project_summary.php?projecti d=modeling.mdt.bpmn2) as input for a transformation.
When using the BPMN 2.0 editor (generated from the metamodel), it creates the following as output XML:
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL-XMI" id="sid-Definitions">
This conforms with the metamodel of BPMN2.0. However, when trying to use this file as input for an ATL transformation, I get the error:
org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'definitions' is not found or is abstract.
Indeed, "definitions" is not a class. Definitions is the class (mind the capital). The same goes for process, task, etc.
In the ecore model, definitions: Definitions, process: Process, etc. is defined in the DocumentRoot, but ATL doesn't recognise this.
What is the problem here? Is there a way to make ecore/ATL recognize global attributes? Is it even possible to use this XML file as input for an ATL transformation (it conforms to the metamodel, it just uses global attributes in stead of the class-name directly)?
Powered by FUDForum
. Page generated in 0.01572 seconds