Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How use UML Primtives Types in Target Model
[ATL] How use UML Primtives Types in Target Model [message #635632] Wed, 27 October 2010 14:48 Go to next message
Mathias  is currently offline Mathias Friend
Messages: 2
Registered: October 2010
Junior Member
Hi men,

I try to execute this rule in an ATL Transformation :

rule Property {
from s : UML2!"uml::Property" (
if thisModule.inElements->includes(s) then
s->oclIsTypeOf(UML2!"uml::Property")
else false endif)
to t : UML2!"uml::Property" mapsTo s (
name <- s.name,
...
type <- s.type,
....
qualifier <- s.qualifier)
}

But unfortunately the result is not expected : the target type is always empty even if the source type is an Primitive Type as String.

I think that's an ingenuous question but i'm sorry, I'm newbie in this technologie.

Thank's for your answers.
Re: [ATL] How use UML Primtives Types in Target Model [message #635677 is a reply to message #635632] Wed, 27 October 2010 17:27 Go to previous message
Mathias  is currently offline Mathias Friend
Messages: 2
Registered: October 2010
Junior Member
Ok, it's very simple.
If you have the same problem, you have to check the Allow inter-model references in the Advanced Tab of running ATL configuration.
Previous Topic:[ATL] transformation generated automatically
Next Topic:[QVTo] Use of extended metamodels in transformations
Goto Forum:
  


Current Time: Mon Sep 23 08:56:28 GMT 2019

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

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

Back to the top