Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] global elements in xmi file(How to use global elements as input in ATL)
[ATL] global elements in xmi file [message #549288] Mon, 26 July 2010 07:36 Go to next message
Eclipse UserFriend
Dear all,

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">
  <bpmn2:process id="sid-Process">
        <bpmn2:task id="sid-Task">
  </bpmn2:process>
</bpmn2: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)?

Thank you!


Re: [ATL] global elements in xmi file [message #549329 is a reply to message #549288] Mon, 26 July 2010 09:25 Go to previous messageGo to next message
Eclipse UserFriend
How do you load the model ?
Re: [ATL] global elements in xmi file [message #549333 is a reply to message #549329] Mon, 26 July 2010 09:29 Go to previous messageGo to next message
Eclipse UserFriend
I have a small ATL example set up, and just run it through the graphical interface with the output of the BPMN editor as input for the ATL transformation, the metamodel of BPMN2.0 as metamodel for IN and a simple metamodel (one class) as OUT.
Re: [ATL] global elements in xmi file [message #549335 is a reply to message #549288] Mon, 26 July 2010 09:33 Go to previous message
Eclipse UserFriend
Are you using the BPMN factory ? ATL delegates to the registered factory for the model loading. So if the factory knows how to load the model and if you're using this factory, it should work.
Previous Topic:Set default created date on target...
Next Topic:[SOLVED] [ATL] Put root element on all other elements
Goto Forum:
  


Current Time: Sun Jun 22 18:01:16 EDT 2025

Powered by FUDForum. Page generated in 0.04092 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top