How to move the containment's in ETL ? [message #1744818] |
Fri, 30 September 2016 13:39 |
Rajkumar K Messages: 26 Registered: May 2015 |
Junior Member |
|
|
Hello,
I am using ETL for transforming the source model to target model. Both source
model and target models are using the same Ecore model. I have attached the use
case in the image Eplison_ETL_UseCase.png. The use case is very simple.
I have to write the transformation rule to move the ("C" Nodes and its children
Nodes) of parent "A" Node to "B" Node.
I am finding difficultly to writing these rules for movement of containers between
the Nodes, Basically I am filter the Node "C" during transformation of Node "A".
Later during transformation of Parent Node "B" I am quering all the Nodes"C" and
adding its to children. I guess the guard : conditions is not allowing to add the Node
"C" to Node B. If I introduce the new separate rule to copy only Node "C" and its
children. Then Node"A" and Node "C" and it children disappears.
I feel we can achieve this use case using simple transformation rules. I have
attached the minimal working example. Please unzip and run the
Tree2Tree.launch. The transformation rules are found in Tree2Tree.etl. Please let
me know if you need any further information.
Thank you for your support.
Best Regards,
Rajkumar
[Updated on: Fri, 30 September 2016 13:41] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03470 seconds