Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » New model with new profile application
New model with new profile application [message #97110] Mon, 15 December 2008 11:47
giacomo is currently offline giacomoFriend
Messages: 9
Registered: July 2009
Junior Member
Hi, I want to make an ATL Transformation from one Model that has a profile
applied to another with a diffent profile application.


module TransformationNew;
create OUT : UML2 from IN : UML2, PRO : UML2;


rule M2M {
from mIn : UML2!"uml::Model"
to mOut : UML2!"uml::Model" (
name <- 'New_Model'
)

do {
mOut.applyProfile(UML2!"uml::Profile".allInstancesFrom('PRO')- >select(p
| p.name = 'MyNewProfile')->first());
}
}


Where is my fault?It's possible to make this operation with ATL?
Previous Topic:UML to Ecore ATL transformation example
Next Topic:[ATL] Extension Points
Goto Forum:
  


Current Time: Sat Apr 27 03:37:20 GMT 2024

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

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

Back to the top