Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » two parts metamodel
two parts metamodel [message #1753319] Fri, 03 February 2017 18:39 Go to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
Hi,

My source meta-model has two parts which links together.
When I want to transform an element of second part of this meta-model, it doesn't have error but nothing create in output. What can I do?


Member of MDSE Research Group
http://mdse.ui.ac.ir
Re: two parts metamodel [message #1753740 is a reply to message #1753319] Thu, 09 February 2017 14:24 Go to previous messageGo to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
For clarify, I have below meta-model.
index.php/fa/28380/0/


Member of MDSE Research Group
http://mdse.ui.ac.ir
Re: two parts metamodel [message #1753760 is a reply to message #1753740] Thu, 09 February 2017 19:30 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

If you specify ETL.ecore as metamodel, ATL will also load any metamodels it refers to (I.e. EOL.ecore).

Cheers,
Dennis
Re: two parts metamodel [message #1753778 is a reply to message #1753760] Fri, 10 February 2017 05:58 Go to previous messageGo to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
I specified ETL as metamodel, but when I write e.g. "MM_ETL!AssignmentStatement" in the from part of my ATL rule, no element create in the output. if I change "MM_ETL!AssignmentStatement" to e.g. "MM_ETL!TransformationRule" or anything in the ETL part the elemet create in the output. I use version 3.6 of ATL.

Member of MDSE Research Group
http://mdse.ui.ac.ir

[Updated on: Fri, 10 February 2017 05:58]

Report message to a moderator

Re: two parts metamodel [message #1753876 is a reply to message #1753778] Sat, 11 February 2017 08:09 Go to previous messageGo to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
When I register metamodels, the output is not generated whether transform the element of ETL part or EOL part. I have this error:
Error loading platform:/resource/Project/Model/Tree2Graph.etl.model: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.emf.ecore.impl.DynamicEObjectImpl@757faad7 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1c2fa2f9 (name: NameExpression) (instanceClassName: null) (abstract: false, interface: false))' is not legal. (platform:/resource/Project/Model/Tree2Graph.etl.model, 35, 104)


The start of my Tree2Graph.etl.model file is like below:
<?xml version="1.0" encoding="ASCII"?>
<etl:ETLModule xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:eol="http://www.eclipse.org/epsilon/eol" xmlns:etl="http://www.eclipse.org/epsilon/etl">




Member of MDSE Research Group
http://mdse.ui.ac.ir

[Updated on: Sat, 11 February 2017 08:37]

Report message to a moderator

Re: two parts metamodel [message #1754138 is a reply to message #1753876] Tue, 14 February 2017 17:00 Go to previous message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
You probably have an attribut set with an object of the wrong type (for example you have value="1" instead of value=1).
(platform:/resource/Project/Model/Tree2Graph.etl.model, 35, 104): this indicate the line and the column where is the element of your model causing the issue.
Previous Topic:UnresolvedReferenceException:
Next Topic:Problem with navigating in ATL
Goto Forum:
  


Current Time: Tue Apr 16 12:35:38 GMT 2024

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

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

Back to the top