Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:39 Go to next message
Rajkumar K is currently offline Rajkumar KFriend
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

Re: How to move the containment's in ETL ? [message #1744983 is a reply to message #1744818] Mon, 03 October 2016 19:12 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

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 08:20 Go to previous message
Rajkumar K is currently offline Rajkumar KFriend
Messages: 26
Registered: May 2015
Junior Member
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: Sat Apr 20 02:42:56 GMT 2024

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

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

Back to the top