Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [ETL] Accesing existing output model elements
[ETL] Accesing existing output model elements [message #587588] Tue, 23 March 2010 17:25 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

I am working on a ETL rule that creates elements on an output model that already has some elements on it. Some of the existent elements and the new ones need a consecutive id number, so I need to collect all the elements of type IdElement to get a list of existing ids and use the next one. My problem seems that I can not access the existent elements of the output model. I use read on load and store on disposal and new elements are indeed created. Any idea on how to access existent elements?

Thanks,


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: [ETL] Accesing existing output model elements [message #587609 is a reply to message #587588] Tue, 23 March 2010 17:57 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Horacio,

If your target model is named Target, you should be able to get all
elements of type IdElement using Target!IdElement.all. What does
Target!IdElement.all.println() print?

Cheers,
Dimitris

Horacio wrote:
> I am working on a ETL rule that creates elements on an output model that
> already has some elements on it. Some of the existent elements and the
> new ones need a consecutive id number, so I need to collect all the
> elements of type IdElement to get a list of existing ids and use the
> next one. My problem seems that I can not access the existent elements
> of the output model. I use read on load and store on disposal and new
> elements are indeed created. Any idea on how to access existent elements?
>
> Thanks,
>
>
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:ETL, problem with a data type
Next Topic:ETL, problem with a data type
Goto Forum:
  


Current Time: Sat Apr 20 03:25:46 GMT 2024

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

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

Back to the top