Home » Modeling » Epsilon » [ETL] Accesing existing output model elements
[ETL] Accesing existing output model elements [message #522714] |
Tue, 23 March 2010 17:25 |
|
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 #522748 is a reply to message #522726] |
Tue, 23 March 2010 20:01 |
|
Hi Dimitris,
This is what I get: Sequence {}
I have tried with different element types and all return an empty set. The only thing that seems to return something is if I get the elements of the type the rule has as output, which returns 1 element, the one I am creating?
Cheers,
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
| |
Re: [ETL] Accesing existing output model elements [message #525425 is a reply to message #522751] |
Tue, 06 April 2010 14:34 |
|
Hello,
I have tried to test this to see if somehow I managed to see the elements. Looking at the documentation I did a small eol test:
base!Font.all().println();
var f : new base!Font;
base!Font.all().println();
base.allContents().println();
For which I get the next console output:
Sequence {}
Sequence {Font [id=null, color=null, faceName=null, pointSize=null]}
Sequence {DocumentRoot [mixed=[ecore.xml.type:text=
], ], EStringToStringMapEntry [key=xmi, value=http://www.omg.org/XMI], EStringToStringMapEntry [key=xsi, value=http://www.w3.org/2001/XMLSchema-instance], EStringToStringMapEntry [key=tdml, value=http://moosas.uniandes.edu.co/HiLeSPL/tdml], Font [id=null, color=null, faceName=null, pointSize=null]}
If I look at the xml of the base model I see:
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tdml="http://moosas.uniandes.edu.co/HiLeSPL/tdml">
<tdml:TimingDiagram defaultTimeUnits="1e-6" delayRule="first" fontPtr="HL4" lineThickness="1" showDelays="1" showHolds="1" showSamples="1" showSetups="1" showUncertainty="ALL">
<tdmlAdminInfo>
...
Comparing it to the console output it would seem that only the model information is beeing loaded (the xmi description) and not the element information.
Hope this helps.
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
Re: [ETL] Accesing existing output model elements [message #525461 is a reply to message #525425] |
Tue, 06 April 2010 16:05 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Horacio,
Not sure why this might be happening. Could you please zip and send me
your metamodels/models/transformations so that I can have a closer look
at this?
Cheers,
Dimitris
On 06/04/2010 17:34, Horacio wrote:
> Hello,
>
> I have tried to test this to see if somehow I managed to see the
> elements. Looking at the documentation I did a small eol test:
>
> base!Font.all().println();
> var f : new base!Font;
> base!Font.all().println();
> base.allContents().println();
>
> For which I get the next console output:
>
> Sequence {}
> Sequence {Font [id=null, color=null, faceName=null, pointSize=null]}
> Sequence {DocumentRoot [mixed=[ecore.xml.type:text=
> ], ], EStringToStringMapEntry [key=xmi, value=http://www.omg.org/XMI],
> EStringToStringMapEntry [key=xsi,
> value=http://www.w3.org/2001/XMLSchema-instance],
> EStringToStringMapEntry [key=tdml,
> value=http://moosas.uniandes.edu.co/HiLeSPL/tdml], Font [id=null,
> color=null, faceName=null, pointSize=null]}
>
>
> If I look at the xml of the base model I see:
>
> <?xml version="1.0" encoding="ASCII"?>
> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:tdml="http://moosas.uniandes.edu.co/HiLeSPL/tdml">
> <tdml:TimingDiagram defaultTimeUnits="1e-6" delayRule="first"
> fontPtr="HL4" lineThickness="1" showDelays="1" showHolds="1"
> showSamples="1" showSetups="1" showUncertainty="ALL">
> <tdmlAdminInfo>
> ..
>
> Comparing it to the console output it would seem that only the model
> information is beeing loaded (the xmi description) and not the element
> information.
> Hope this helps.
>
>
>
|
|
| | | | |
Re: [ETL] Accesing existing output model elements [message #588182 is a reply to message #522751] |
Tue, 06 April 2010 14:34 |
|
Hello,
I have tried to test this to see if somehow I managed to see the elements. Looking at the documentation I did a small eol test:
base!Font.all().println();
var f : new base!Font;
base!Font.all().println();
base.allContents().println();
For which I get the next console output:
Sequence {}
Sequence {Font [id=null, color=null, faceName=null, pointSize=null]}
Sequence {DocumentRoot [mixed=[ecore.xml.type:text=
], ], EStringToStringMapEntry [key=xmi, value=http://www.omg.org/XMI], EStringToStringMapEntry [key=xsi, value=http://www.w3.org/2001/XMLSchema-instance], EStringToStringMapEntry [key=tdml, value=http://moosas.uniandes.edu.co/HiLeSPL/tdml], Font [id=null, color=null, faceName=null, pointSize=null]}
If I look at the xml of the base model I see:
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tdml="http://moosas.uniandes.edu.co/HiLeSPL/tdml">
<tdml:TimingDiagram defaultTimeUnits="1e-6" delayRule="first" fontPtr="HL4" lineThickness="1" showDelays="1" showHolds="1" showSamples="1" showSetups="1" showUncertainty="ALL">
<tdmlAdminInfo>
...
Comparing it to the console output it would seem that only the model information is beeing loaded (the xmi description) and not the element information.
Hope this helps.
--
Horacio Hoyos Rodriguez
Research Assistant
Universidad de los Andes
http://moosas.uniandes.edu.co/
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
Re: [ETL] Accesing existing output model elements [message #588190 is a reply to message #588182] |
Tue, 06 April 2010 16:05 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Horacio,
Not sure why this might be happening. Could you please zip and send me
your metamodels/models/transformations so that I can have a closer look
at this?
Cheers,
Dimitris
On 06/04/2010 17:34, Horacio wrote:
> Hello,
>
> I have tried to test this to see if somehow I managed to see the
> elements. Looking at the documentation I did a small eol test:
>
> base!Font.all().println();
> var f : new base!Font;
> base!Font.all().println();
> base.allContents().println();
>
> For which I get the next console output:
>
> Sequence {}
> Sequence {Font [id=null, color=null, faceName=null, pointSize=null]}
> Sequence {DocumentRoot [mixed=[ecore.xml.type:text=
> ], ], EStringToStringMapEntry [key=xmi, value=http://www.omg.org/XMI],
> EStringToStringMapEntry [key=xsi,
> value=http://www.w3.org/2001/XMLSchema-instance],
> EStringToStringMapEntry [key=tdml,
> value=http://moosas.uniandes.edu.co/HiLeSPL/tdml], Font [id=null,
> color=null, faceName=null, pointSize=null]}
>
>
> If I look at the xml of the base model I see:
>
> <?xml version="1.0" encoding="ASCII"?>
> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:tdml="http://moosas.uniandes.edu.co/HiLeSPL/tdml">
> <tdml:TimingDiagram defaultTimeUnits="1e-6" delayRule="first"
> fontPtr="HL4" lineThickness="1" showDelays="1" showHolds="1"
> showSamples="1" showSetups="1" showUncertainty="ALL">
> <tdmlAdminInfo>
> ..
>
> Comparing it to the console output it would seem that only the model
> information is beeing loaded (the xmi description) and not the element
> information.
> Hope this helps.
>
>
>
|
|
| | |
Goto Forum:
Current Time: Tue Sep 24 18:55:11 GMT 2024
Powered by FUDForum. Page generated in 0.04893 seconds
|