Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Run refining transformation programatically
Run refining transformation programatically [message #1831559] Sun, 23 August 2020 14:52 Go to next message
Andreas Bäuerle is currently offline Andreas BäuerleFriend
Messages: 11
Registered: April 2020
Junior Member
Hello! I hope you are all doing good.

In the last step of my project I wanted to create an ATL plugin to be capable to export a jar. The transformation runs fine. However, when I try to create the Plugin and run it inside eclipse it keeps giving me the following error.

org.eclipse.m2m.atl.core.ATLCoreException: Built-in resource RefiningTrace.ecore not found
at org.eclipse.m2m.atl.core.emf.EMFModelFactory.getBuiltInResource(EMFModelFactory.java:179)
at SysAnnoPlugin.files.SysAnno.loadModels(SysAnno.java:135)
at SysAnnoPlugin.files.SysAnno.main(SysAnno.java:89)

I'm not quite sure where this originates from, as I am not using such an ecore model. Can you help me?

The project is attached.

Thank you very much in advance.
Re: Run refining transformation programatically [message #1831560 is a reply to message #1831559] Sun, 23 August 2020 15:18 Go to previous messageGo to next message
Andreas Bäuerle is currently offline Andreas BäuerleFriend
Messages: 11
Registered: April 2020
Junior Member
Hello. Solved the problem myself. I simply rewrote some code for the launcher to load my own metamodel and loaded the RefiningTrace.ecore metamodel myself into the transformation. Not the most beautiful way to do it I guess, but it works.

Greetings, Andreas
Re: Run refining transformation programatically [message #1831951 is a reply to message #1831560] Thu, 03 September 2020 13:19 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hi Dennis,

In the above programmatic transformation logic, Andreas has made use of the `EMFVMLauncher`. I come across another piece of code (link below) where `org.eclipse.m2m.atl.emftvm.ExecEnv` is used. Out of the two options, which one is recommended?

https://github.com/guana/ATLauncher/blob/master/ATLauncher/src/ualberta/edu/guana/tools/atl/ATLLauncher.java
http://victorguana.blogspot.com/2015/02/running-atl-emftvm-transformations.html


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Run refining transformation programatically [message #1831957 is a reply to message #1831951] Thu, 03 September 2020 16:51 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

You should use EMFTVM whenever possible. See also https://wiki.eclipse.org/ATL/VM_Comparison

Depending on the VM, you should use the code template for that VM.


Cheers,
Dennis
Re: Run refining transformation programatically [message #1832008 is a reply to message #1831957] Fri, 04 September 2020 14:38 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Dennis,

Thanks for clarifying.


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:[Solved] Using an extended set of primitive ECore types
Next Topic:Multiple Input models / metamodels (Model Fusion)
Goto Forum:
  


Current Time: Sat Nov 11 08:18:01 GMT 2023

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

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

Back to the top