Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] setting __xmiID__ values doesn't work?
[ATL] setting __xmiID__ values doesn't work? [message #532144] Fri, 07 May 2010 06:35 Go to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello,

in my ATL transformation, I have something like this:

<code>

rule EAttribute {
from s : ecore!EAttribute
to t : ecore!EAttribute(
__xmiID__ <- s.__xmiID__,
name <- s.name,
(...)
)
}
</code>

When I run this transformation on an Ecore, I get:

Manual setting of <unnamed>:EAttribute XMI ID.
org.eclipse.m2m.atl.engine.emfvm.VMException: Feature __xmiID__ does not
exist on EAttribute
at __applyEAttribute(ecorecopy.atl[10:17-10:54])
local variables: self=thisModule,
link=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@1b5e91a,
s=IN!name:ecore!EAttribute, t=OUT!<unnamed>:ecore!EAttribute
at __exec__(ecorecopy.atl)
local variables: self=thisModule,
e=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@1b5e91a
at main(ecorecopy.atl)
local variables: self=thisModule

The first line is orange (warning), the remainder is red (error).

Does anyone know how to set xmi:id values in an ATL transformation?

I demonstrated it here using an ecore to ecore transformation, but I
would like to do this for other metamodels. Does it require special
settings in for instance an ecore or genmodel?

Any help would be appreciated,
Dennis
Re: [ATL] setting __xmiID__ values doesn't work? [message #532161 is a reply to message #532144] Fri, 07 May 2010 07:19 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried in regular VM ?
Re: [ATL] setting __xmiID__ values doesn't work? [message #532175 is a reply to message #532161] Fri, 07 May 2010 08:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Sylvain EVEILLARD wrote:
> Have you tried in regular VM ?

No, I had not. It does indeed work in regular VM.

Thanks!

Dennis
Re: [ATL] setting __xmiID__ values doesn't work? [message #537164 is a reply to message #532175] Tue, 01 June 2010 10:15 Go to previous messageGo to next message
Eclipse UserFriend
is it possible to use __xmiID__ in EMF VM ?
It seems that EMF VM is able to read __xmiID__ but not write it, is there a way to override that, may be using some specific Resource ?

Thanks.

SeB.
Re: [ATL] setting __xmiID__ values doesn't work? [message #537171 is a reply to message #532144] Tue, 01 June 2010 10:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

unfortunately it is not possible using the EMF VM. You have to use the Regular VM.

BR / Helko
Re: [ATL] setting __xmiID__ values doesn't work? [message #537205 is a reply to message #537171] Tue, 01 June 2010 11:18 Go to previous message
Eclipse UserFriend
The problem is that I cannot make my transformation work with the regular VM,
My input metadata called cwm.ext.ecore is refering to another ecore file called cwm.ecore.
And I do not manage to register the second ecore (cwm) neither from the Eclipse launcher nor from the java APIs.

I have managed to register it with the EMF VM APIs but not with the Regular one.
The ATL API does not manage to load my model because it cannot acces to the refered metamodel.

I am stuck !!!!

Previous Topic:ATL debug, how to use debug/output to print special var values
Next Topic:how to construct a uml property in the LET expression
Goto Forum:
  


Current Time: Sun Jun 22 14:51:37 EDT 2025

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

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

Back to the top