Skip to main content



      Home
Home » Modeling » Epsilon » Executing rules ETL
Executing rules ETL [message #510259] Tue, 26 January 2010 19:25 Go to next message
Eclipse UserFriend
Hello Dimitrios.
I have concentrated on the example "org.eclipse.epsilon.examples.oo2db" to execute my rules ETL from the modelos.ecore.
I have created three files: UML.model, modeloOR.model and empty Trace.model that initially are emptinesses I have created the file "launch.xml" that is:


<target name="loadModels">

<epsilon.emf.register file="UML.ecore"/>
<epsilon.emf.register file="modeloOR.ecore"/>
<epsilon.emf.register file="SimpleTrace.ecore"/>

<epsilon.loadModel name="UML" type="EMF">
<parameter name="modelFile" file="models/UML.model"/>
<parameter name="metamodelUri" value="http://www.eclipse.org/uml2/2.1.0/UML"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="false"/>
</epsilon.loadModel>

<epsilon.loadModel name="modeloOR" type="EMF">
<parameter name="modelFile" file="models/modeloOR.model"/>
<parameter name="metamodelUri" value="http:///modeloOR.ecore"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="false"/>
</epsilon.loadModel>

<epsilon.loadModel name="Trace" type="EMF">
<parameter name="modelFile" file="models/Trace.model"/>
<parameter name="metamodelUri" value="SimpleTrace"/>
<parameter name="readOnLoad" value="false"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>

</target>

<target name="main" depends="loadModels">
<epsilon.etl src="Model.etl">
<model ref="UML"/>
<model ref="modeloOR"/>
<model ref="Trace"/>
</epsilon.etl>



And the exit that appears is:
"Buildfile: C:\......L\launch.xml

loadModels:

main:
[epsilon.etl - Model.etl] ETL
[epsilon.etl - Model.etl] Fin
BUILD SUCCESSFUL
Total time: 968 milliseconds
"


But in the files UML.model, modeloOR, Trace.model are empty , that is to say that does not execute anything...
Since I execute the file that contains the rules ETL from the file UML.ecore and modeloOR.ecore?


Thanks!!
Re: Executing rules ETL [message #510266 is a reply to message #510259] Tue, 26 January 2010 19:59 Go to previous message
Eclipse UserFriend
Hi,

I'm afraid I don't understand how this question relates to the oo2db
example.

Do you want your transformation to transform models/UML.model to
models/modeloOR.model? In this case, in modeloOR readOnLoad should be
false and storeOnDisposal should be true (it's the other way round now).

Now about the empty models, does UML.model contain anything *before* you
run the transformation? If not, it should as it is the source model of
the transformation.

If you're still having problems with this it'd be probably useful to
send me a zip file with your project.

Cheers,
Dimitris

c wrote:
> Hello Dimitrios.
> I have concentrated on the example "org.eclipse.epsilon.examples.oo2db"
> to execute my rules ETL from the modelos.ecore.
> I have created three files: UML.model, modeloOR.model and empty
> Trace.model that initially are emptinesses I have created the file
> "launch.xml" that is:
>
>
> <target name="loadModels">
>
> <epsilon.emf.register file="UML.ecore"/>
> <epsilon.emf.register file="modeloOR.ecore"/>
> <epsilon.emf.register file="SimpleTrace.ecore"/>
>
> <epsilon.loadModel name="UML" type="EMF">
> <parameter name="modelFile" file="models/UML.model"/>
> <parameter name="metamodelUri"
> value="http://www.eclipse.org/uml2/2.1.0/UML"/>
> <parameter name="readOnLoad" value="true"/>
> <parameter name="storeOnDisposal" value="false"/>
> </epsilon.loadModel>
>
> <epsilon.loadModel name="modeloOR" type="EMF">
> <parameter name="modelFile" file="models/modeloOR.model"/>
> <parameter name="metamodelUri" value="http:///modeloOR.ecore"/>
> <parameter name="readOnLoad" value="true"/>
> <parameter name="storeOnDisposal" value="false"/>
> </epsilon.loadModel>
>
> <epsilon.loadModel name="Trace" type="EMF">
> <parameter name="modelFile" file="models/Trace.model"/>
> <parameter name="metamodelUri" value="SimpleTrace"/>
> <parameter name="readOnLoad" value="false"/>
> <parameter name="storeOnDisposal" value="true"/>
> </epsilon.loadModel>
>
> </target>
>
> <target name="main" depends="loadModels">
> <epsilon.etl src="Model.etl">
> <model ref="UML"/>
> <model ref="modeloOR"/>
> <model ref="Trace"/>
> </epsilon.etl>
>
>
>
> And the exit that appears is:
> "Buildfile: C:\......L\launch.xml
>
> loadModels:
>
> main:
> [epsilon.etl - Model.etl] ETL
> [epsilon.etl - Model.etl] Fin
> BUILD SUCCESSFUL
> Total time: 968 milliseconds
> "
>
> But in the files UML.model, modeloOR, Trace.model are empty , that is to
> say that does not execute anything...
> Since I execute the file that contains the rules ETL from the file
> UML.ecore and modeloOR.ecore?
>
>
> Thanks!!


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Transforming from ecore to a genmodel-like configuration model
Next Topic:Executing rules ETL
Goto Forum:
  


Current Time: Fri Nov 07 15:03:41 EST 2025

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

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

Back to the top