Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:36 Go to next message
Pieter is currently offline PieterFriend
Messages: 7
Registered: July 2010
Junior Member
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 13:25 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
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 13:29 Go to previous messageGo to next message
Pieter is currently offline PieterFriend
Messages: 7
Registered: July 2010
Junior Member
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 13:33 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
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: Thu Apr 18 00:04:07 GMT 2024

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

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

Back to the top