Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How does ATL accept instances of two related models
[ATL] How does ATL accept instances of two related models [message #643189] Sun, 05 December 2010 22:01 Go to next message
bacha  is currently offline bacha Friend
Messages: 53
Registered: July 2009
Member
Hi,
I developped two metamodels X and Y that are dependant. (Each one have a class that references another one from the other metamodel): X and Y have some non-containment
bidirectional reference between them. From either the editor for the X instance or the editor for the Y instance, I use Load Resource...
to load the resource containing the other instance. I have an
editor with both an X and a Y instance in the resource set.I am able to populate any reference of X that requires a Y and vice versa using the generic EMF form editor.
The problem is that when using this instances to test my ATL code, it displays the following message :
org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model mapping. I think that ATL did not consider the relationship that exists between the two instances of X and Y.
Could you please tell me if it is the reason for the problem ? and if it is the case how to solve it ?

Thanks.
Regards.

Taupin
Re: [ATL] How does ATL accept instances of two related models [message #643237 is a reply to message #643189] Mon, 06 December 2010 08:19 Go to previous messageGo to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Le 05/12/2010 23:01, taupin a écrit :
> Hi,
> I developped two metamodels X and Y that are dependant. (Each one have a
> class that references another one from the other metamodel): X and Y
> have some non-containment
> bidirectional reference between them. From either the editor for the X
> instance or the editor for the Y instance, I use Load Resource...
> to load the resource containing the other instance. I have an editor
> with both an X and a Y instance in the resource set.I am able to
> populate any reference of X that requires a Y and vice versa using the
> generic EMF form editor. The problem is that when using this instances
> to test my ATL code, it displays the following message :
> org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model
> mapping. I think that ATL did not consider the relationship that exists
> between the two instances of X and Y. Could you please tell me if it is
> the reason for the problem ? and if it is the case how to solve it ?
>
> Thanks.
> Regards.
>
> Taupin

Hello

Have you check "Allow inter-model references" in the "Advanced" tab of
ATL launch configurator?

(if Yes, try without it in order to see on which element/rule it fails)
--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Re: [ATL] How does ATL accept instances of two related models [message #643240 is a reply to message #643189] Mon, 06 December 2010 08:50 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Usually you have to load the models the exact same way they refer each other.
Let's say one references the other using a platform:/resource URI. Then you'll have to use this same URI to load the model in the ATL transformation otherwise the references won't be loaded correctly.
Re: [ATL] How does ATL accept instances of two related models [message #643247 is a reply to message #643237] Mon, 06 December 2010 09:38 Go to previous messageGo to next message
bacha  is currently offline bacha Friend
Messages: 53
Registered: July 2009
Member
Hi Vincent,
I have tried your proposed solution but the problem persists.
Have you please any other alternatives.

Thanks.
Taupin
Re: [ATL] How does ATL accept instances of two related models [message #643288 is a reply to message #643240] Mon, 06 December 2010 11:54 Go to previous message
bacha  is currently offline bacha Friend
Messages: 53
Registered: July 2009
Member
Hi Sylvain,
Thank you for our reply.
I verified all used URI and they do not represent any problem.
I think that origin of the problem is the configuration or the used version of the EMF VM.
Thanks.

Taupin
Previous Topic:[ATL] About internal traceability links in ATL
Next Topic:[QVTO] map versus xmap
Goto Forum:
  


Current Time: Thu Apr 25 22:59:02 GMT 2024

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

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

Back to the top