Skip to main content



      Home
Home » Modeling » Epsilon » How to move the containment's in ETL ? (How to move the containments in ETL ? )
How to move the containment's in ETL ? [message #1744818] Fri, 30 September 2016 09:39 Go to next message
Eclipse UserFriend
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 09:41] by Moderator

Re: How to move the containment's in ETL ? [message #1744983 is a reply to message #1744818] Mon, 03 October 2016 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

How about doing a copy transformation and then moving the C nodes under B in a post{} section of the transformation?

Cheers,
Dimitris
Re: How to move the containment's in ETL ? [message #1745013 is a reply to message #1744983] Tue, 04 October 2016 04:20 Go to previous message
Eclipse UserFriend
Hi Dimitris,

Thank you very much for the quick support

I did the movement in Post section and It works Smile

Best Regards,

Rajkumar
Previous Topic:news.eclipse.org is shutting down.
Next Topic:Java 1.8 and ExtendProperties
Goto Forum:
  


Current Time: Sun Jul 27 14:41:39 EDT 2025

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

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

Back to the top