Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » problems with ETL(ETL & ATL)
icon4.gif  problems with ETL [message #505702] Mon, 04 January 2010 15:13 Go to next message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
I turn him to writing because I have some problems programming the rules in ETL.
I have some doubts.

The first one is that in the file "UML.model" I do not know like to accede to the elements that are inside the package "uml".
Since I accede to the element that this inside the package uml???


The second problem is that the rules that they declare in ATL since " unique lazy rule " declare themselves in ETL as "operation"??

The third problem is that I have v.Model:=package(); And on having assigned value to the variable 'model' me the mistake appears


"Property 'Model' not found in object PrimitiveType [Name=CHAR]"

Thanks !!!

[Updated on: Mon, 04 January 2010 15:14]

Report message to a moderator

Re: problems with ETL [message #505720 is a reply to message #505702] Mon, 04 January 2010 16:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Please see comments below

c wrote:
> I turn him to writing because I have some problems programming the rules
> in ETL.
> I have some doubts.
>
> The first one is that in the file "UML.model" I do not know like to
> accede to the elements that are inside the package "uml".
> Since I accede to the element that this inside the package uml???

Not sure I understand this. Could you please elaborate?

>
>
> The second problem is that the rules that they declare in ATL since "
> unique lazy rule " declare themselves in ETL as "operation"??

parameter-less operations annotated with @cached (so that they are
executed only once) is probably the way to go

>
> The third problem is that I have v.Model:=package(); And on having
> assigned value to the variable 'model' me the mistake appears
>
> "Property 'Model' not found in object PrimitiveType [Name=CHAR]"

I've looked at the metamodel and I think it should be v.model instead of
v.Model

>
> Thank !!!

Cheers,
Dimitris

--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: problems with ETL [message #505783 is a reply to message #505720] Mon, 04 January 2010 23:33 Go to previous messageGo to next message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Hello again:
Thank you for answering me. I order you a mail, to your personal e-mail, but you did not answer me. It is this mail attach a document .word in that my doubts are understood better, because here in the forum I cannot stick images.
My doubts are:
The first doubt is that I have a file 'UML.ecore'. This file this one formed(trained) by a package 'uml' and inside the package they exist element as(like) for example 'element', 'package' .... etc.
Since I can accede to these element in the rules ETL??
For example if I write

' rule String2Varchar
transform pr:UML! PrimitiveType
to v:modeloOR! PrimitiveType {'

the parameter 'PrimitiveType' is not recognized if it is inside the package 'uml'.
In order that the rule ETL 'String2Varchar' works correctly, the element 'PrimitiveType' has to be declared out of the package 'uml'.
Since I can declare the function in order that it(he,she) recognizes me the element 'PrimitiveType' that this inside the package 'uml'??
I have proved(tried) this

' rule String2Varchar
transform pr:UML!
uml.PrimitiveType
to v:modeloOR! PrimitiveType {'
, But mistakes appear.
The second doubt that you have answered me is not understood by me well.
This one saying that the functions that they declare like ' unique lazy rule ' in ATL, must be declared in ETL as
' (@cache)?
(@lazy)?
Operation .... "????????
'

In the third doubt, if I write 'v.model', I have to put the word 'model' with commas because it is a word reserved of ETL. But it is still giving me mistakes...
'
Thanks

[Updated on: Mon, 04 January 2010 23:35]

Report message to a moderator

Re: problems with ETL [message #505789 is a reply to message #505783] Tue, 05 January 2010 00:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

I haven't had a chance to look at this properly as I'm currently on
holiday. I'm back in office next week so I'll have a closer look at this
and get back to you then.

Cheers,
Dimitris

c wrote:
> Hello again:
> Thank you for answering me. I order you a mail, to your personal e-mail,
> but you did not answer me. It is this mail attach a document .word in
> that my doubts are understood better, because here in the forum I cannot
> stick images.
> My doubts are:
> The first doubt is that I have a file 'UML.ecore'. This file this one
> formed(trained) by a package 'uml' and inside the package they exist
> element as(like) for example 'element', 'package' .... etc.
> Since I can accede to these element in the rules ETL??
> For example if I write ' rule String2Varchar
> transform pr:UML! PrimitiveType
> to v:modeloOR! PrimitiveType {' the parameter 'PrimitiveType' is not
> recognized if it is inside the package 'uml'.
> In order that the rule ETL 'String2Varchar' works correctly, the element
> 'PrimitiveType' has to be declared out of the package 'uml'.
> Since I can declare the function in order that it(he,she) recognizes me
> the element 'PrimitiveType' that this inside the package 'uml'??
> I have proved(tried) this
> ' rule String2Varchar
> transform pr:UML! uml.PrimitiveType to v:modeloOR! PrimitiveType {' ,
> But mistakes appear.
> The second doubt that you have answered me is not understood by me well.
> This one saying that the functions that they declare like ' unique lazy
> rule ' in ATL, must be declared in ETL as ' (@cache)?
> (@lazy)?
> Operation .... "????????
> '
> Thanks


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
icon4.gif  Re: problems with ETL [message #508219 is a reply to message #505789] Sun, 17 January 2010 18:41 Go to previous messageGo to next message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Please, can someone help me to solve my doubts??
Thank you
Re: problems with ETL [message #508221 is a reply to message #508219] Sun, 17 January 2010 18:46 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Oops! This totally slipped my mind. Sorry about that. I'll have a look
at it tomorrow and get back to you.

Cheers,
Dimitris

c wrote:
> Please, can someone help me to solve my doubts??
> Thank you


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: problems with ETL [message #508457 is a reply to message #508221] Mon, 18 January 2010 23:16 Go to previous messageGo to next message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Please, can someone help me to solve my doubts??
Thank you!!
Re: problems with ETL [message #508462 is a reply to message #508457] Mon, 18 January 2010 23:41 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Apologies for the late reply.

I've had a look at this and it seems you're mixing things up a bit. In
your transformation, you have an input model called UML. I'd suppose
that this would conform to the UML 2.x metamodel but it seems that in
your transformation you have rules that refer both to UML metaclasses
(e.g. UML!Association and UML!Property) and to Ecore metaclasses (e.g
UML!EPackage - there's no class named EPackage in the UML metamodel).
I've also noticed that there's actually no UML model in the project you
sent me (only the UML metamodel).

I'd suggest to start by creating a small UML model first and a minimal
transformation (just 1-2 rules to start with) from UML->modeloOR and
build up from there instead of trying to transcode the complete ATL
transformation you have in one step.

Regarding cached operations, the syntax is

@cached
operation doSomething() {
}

You can find more details on the syntax of ETL (and its underpinning EOL
in the Epsilon book [1])

Cheers,
Dimitris

[1]: http://www.eclipse.org/gmt/epsilon/doc/book/

c wrote:
> Please, can someone help me to solve my doubts??
> Thank you!!
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: problems with ETL [message #584308 is a reply to message #505720] Mon, 04 January 2010 23:33 Go to previous message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Hello again:
Thank you for answering me. I order you a mail, to your personal e-mail, but you did not answer me. It is this mail attach a document .word in that my doubts are understood better, because here in the forum I cannot stick images.
My doubts are:
The first doubt is that I have a file 'UML.ecore'. This file this one formed(trained) by a package 'uml' and inside the package they exist element as(like) for example 'element', 'package' .... etc.
Since I can accede to these element in the rules ETL??
For example if I write
' rule String2Varchar
transform pr:UML! PrimitiveType
to v:modeloOR! PrimitiveType {'
the parameter 'PrimitiveType' is not recognized if it is inside the package 'uml'.
In order that the rule ETL 'String2Varchar' works correctly, the element 'PrimitiveType' has to be declared out of the package 'uml'.
Since I can declare the function in order that it(he,she) recognizes me the element 'PrimitiveType' that this inside the package 'uml'??
I have proved(tried) this

' rule String2Varchar
transform pr:UML! uml.PrimitiveType
to v:modeloOR! PrimitiveType {'
, But mistakes appear.
The second doubt that you have answered me is not understood by me well.
This one saying that the functions that they declare like ' unique lazy rule ' in ATL, must be declared in ETL as
' (@cache)?
(@lazy)?
Operation .... "????????
'
Thanks
Re: problems with ETL [message #584321 is a reply to message #584308] Tue, 05 January 2010 00:12 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

I haven't had a chance to look at this properly as I'm currently on
holiday. I'm back in office next week so I'll have a closer look at this
and get back to you then.

Cheers,
Dimitris

c wrote:
> Hello again:
> Thank you for answering me. I order you a mail, to your personal e-mail,
> but you did not answer me. It is this mail attach a document .word in
> that my doubts are understood better, because here in the forum I cannot
> stick images.
> My doubts are:
> The first doubt is that I have a file 'UML.ecore'. This file this one
> formed(trained) by a package 'uml' and inside the package they exist
> element as(like) for example 'element', 'package' .... etc.
> Since I can accede to these element in the rules ETL??
> For example if I write ' rule String2Varchar
> transform pr:UML! PrimitiveType
> to v:modeloOR! PrimitiveType {' the parameter 'PrimitiveType' is not
> recognized if it is inside the package 'uml'.
> In order that the rule ETL 'String2Varchar' works correctly, the element
> 'PrimitiveType' has to be declared out of the package 'uml'.
> Since I can declare the function in order that it(he,she) recognizes me
> the element 'PrimitiveType' that this inside the package 'uml'??
> I have proved(tried) this
> ' rule String2Varchar
> transform pr:UML! uml.PrimitiveType to v:modeloOR! PrimitiveType {' ,
> But mistakes appear.
> The second doubt that you have answered me is not understood by me well.
> This one saying that the functions that they declare like ' unique lazy
> rule ' in ATL, must be declared in ETL as ' (@cache)?
> (@lazy)?
> Operation .... "????????
> '
> Thanks


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: problems with ETL [message #584721 is a reply to message #505789] Sun, 17 January 2010 18:41 Go to previous message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Please, can someone help me to solve my doubts??
Thank you
Re: problems with ETL [message #584735 is a reply to message #584721] Sun, 17 January 2010 18:46 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Oops! This totally slipped my mind. Sorry about that. I'll have a look
at it tomorrow and get back to you.

Cheers,
Dimitris

c wrote:
> Please, can someone help me to solve my doubts??
> Thank you


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: problems with ETL [message #584753 is a reply to message #508221] Mon, 18 January 2010 23:16 Go to previous message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Please, can someone help me to solve my doubts??
Thank you!!
Re: problems with ETL [message #584764 is a reply to message #584753] Mon, 18 January 2010 23:41 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Apologies for the late reply.

I've had a look at this and it seems you're mixing things up a bit. In
your transformation, you have an input model called UML. I'd suppose
that this would conform to the UML 2.x metamodel but it seems that in
your transformation you have rules that refer both to UML metaclasses
(e.g. UML!Association and UML!Property) and to Ecore metaclasses (e.g
UML!EPackage - there's no class named EPackage in the UML metamodel).
I've also noticed that there's actually no UML model in the project you
sent me (only the UML metamodel).

I'd suggest to start by creating a small UML model first and a minimal
transformation (just 1-2 rules to start with) from UML->modeloOR and
build up from there instead of trying to transcode the complete ATL
transformation you have in one step.

Regarding cached operations, the syntax is

@cached
operation doSomething() {
}

You can find more details on the syntax of ETL (and its underpinning EOL
in the Epsilon book [1])

Cheers,
Dimitris

[1]: http://www.eclipse.org/gmt/epsilon/doc/book/

c wrote:
> Please, can someone help me to solve my doubts??
> Thank you!!
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Incorrect access to model in ubuntu
Next Topic:problemas ETL: operation
Goto Forum:
  


Current Time: Tue Sep 16 01:02:31 GMT 2014

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

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