[ETL] How to transform the owner relationship between model and classes [message #1113869] |
Sat, 21 September 2013 17:43  |
Eclipse User |
|
|
|
Hi there,
I am quite new in the area of Epsilon and ETL. I would like to know how I can transform the "owner" relationship between a model and the owned classes. Hence, the example is quite simple, see:
Source model
|_Source class 1
|_Source class 2
|_...
Target model
|_Target class 1
|_Target class 2
|_...
I have problems and cannot see from the documentation (neither from the forum nor examples) how I can refer to the "owner" relationship between the model and contained classes.
In the following, I show my code. The relationship between the model and the classes are still missing. It seems that it is not possible to use a global variable to store the model that can be reused in the second transformation.
rule RenameModel
transform sm : DomainSpecificProblemContextModel!Model
to tm : XDomainProblemContextPatternModel!Model{
tm.name = 'XDomain ProblemContext Pattern Model';
}
rule CopyAndRenameClasses
transform sc : Source!Class
to tc : Target!Class
extends RenameModel{
// Copy classes into this model next:
tc.name = '1Class';
}
I appreciate very much any hints how to do this.
Thanks and kind regards, Alexander
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04253 seconds