problems with ETL [message #505702] |
Mon, 04 January 2010 10:13  |
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 10:14] Report message to a moderator
|
|
|
|
| Re: problems with ETL [message #505783 is a reply to message #505720] |
Mon, 04 January 2010 18:33   |
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 18:35] Report message to a moderator
|
|
|
| Re: problems with ETL [message #505789 is a reply to message #505783] |
Mon, 04 January 2010 19:12   |
Dimitrios Kolovos Messages: 1773 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 #508462 is a reply to message #508457] |
Mon, 18 January 2010 18:41  |
Dimitrios Kolovos Messages: 1773 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 18:33  |
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] |
Mon, 04 January 2010 19:12  |
Dimitrios Kolovos Messages: 1773 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 #584764 is a reply to message #584753] |
Mon, 18 January 2010 18:41  |
Dimitrios Kolovos Messages: 1773 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
|
|
|
Powered by
FUDForum. Page generated in 0.02254 seconds