Skip to main content



      Home
Home » Modeling » Epsilon » [ETL] Accesing existing output model elements
[ETL] Accesing existing output model elements [message #587588] Tue, 23 March 2010 13:25 Go to next message
Eclipse UserFriend
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,
Re: [ETL] Accesing existing output model elements [message #587609 is a reply to message #587588] Tue, 23 March 2010 13:57 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 02:27:55 EDT 2025

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

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

Back to the top