Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Strange behaviour
[ATL] Strange behaviour [message #661392] Thu, 24 March 2011 13:55
aaaa  is currently offline aaaa Friend
Messages: 1
Registered: March 2011
Junior Member
Tried to write simple ATL transformation.
Version: 3.1.2.v20110119-0755


-- @path MM=/aa/UML.ecore
-- @path MM4=/aa/UML.ecore

module aaaa;
create OUT : MM4 from IN : MM;

rule modelis {
from s:MM!"UML::AuxiliaryConstructs::Models::Model" ('Architecture')
to r:MM4!"UML::AuxiliaryConstructs::Models::Model" ( name<-'1' )

------------------Source model ---------------

<?xml version="1.0" encoding="ASCII"?>
<UML.AuxiliaryConstructs.Models:Model xmi:version="2.0" xmlns:xmi="" xmlns:xsi="" xmlns:UML.AuxiliaryConstructs.Models="http:///UML/AuxiliaryConstructs/Models.ecore" xsi:schemaLocation="http:///UML/AuxiliaryConstructs/Models.ecore UML.ecore#//AuxiliaryConstructs/Models" uid="1111" name="Architecture"/>

-----------Target model -------------

<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="" xmlns:UML.AuxiliaryConstructs.Models="http:///UML/AuxiliaryConstructs/Models.ecore">
<UML.AuxiliaryConstructs.Models:Model name="Architecture1"/>
<UML.AuxiliaryConstructs.Models:Model name="Architecture1"/>


Why there are two "models" ("Architecture1") in target, if there is only one ("Architecture") in source model?

Previous Topic:[ATL] possible Bug in ->sortedBy
Next Topic:[ATL] Call transformation from Java
Goto Forum:

Current Time: Sat Mar 06 18:16:05 GMT 2021

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

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

Back to the top