Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » problemas ETL: operation
problemas ETL: operation [message #584789] Thu, 21 January 2010 22:07 Go to next message
c  is currently offline c Friend
Messages: 36
Registered: December 2009
Member
Hello Dimitrio.
I feel very much the inconveniences that I you am generating and being grateful to you very much for your help.
But I write to you because I continue having problem.
I have followed(continued) your advices and have created a new file 'UML.model'.
The problems that I have now are:

The call to the functions they are not recognized and the mistake appears 'Method ' attribute_seq ' not found '. It is to say if I write


operation attribute_seq(da:UML!DataType):modeloOR!Attribute{
var a:modeloOR!Attribute;
'attribute_seq'.println();
da.name.......
return a;
}

rule DataType2UDT
transform c:UML!DataType
to s:modeloOR!StructuredType,a:modeloOR!Attribute{
s.attribute:=attribute_seq(c);
}


But if I write the following code if that recognizes it.


operation attribute_seq(){

'attribute_seq'.println();
da.name.......
}

rule DataType2UDT
transform c:UML!DataType
to s:modeloOR!StructuredType,a:modeloOR!Attribute{
attribute_seq();
}

The problem this one when the function has parameters.


The second mistake is that the assignment s. Model: = package (); it continues without working. But in the model if that exists the variable 'Model'

Thank you very much
Re: problemas ETL: operation [message #584811 is a reply to message #584789] Thu, 21 January 2010 23:10 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Carol,

c wrote:
> Hello Dimitrio.
> I feel very much the inconveniences that I you am generating and being
> grateful to you very much for your help.

No worries. That's what forums are for :)

> But I write to you because I continue having problem.
> I have followed(continued) your advices and have created a new file
> 'UML.model'.
> The problems that I have now are:
>
> The call to the functions they are not recognized and the mistake
> appears 'Method ' attribute_seq ' not found '. It is to say if I write
>
>
> operation attribute_seq(da:UML!DataType):modeloOR!Attribute{ var
> a:modeloOR!Attribute;
> 'attribute_seq'.println(); da.name.......
> return a;
> }
> rule DataType2UDT
> transform c:UML!DataType
> to s:modeloOR!StructuredType,a:modeloOR!Attribute{
> s.attribute:=attribute_seq(c);
> }
>
>
> But if I write the following code if that recognizes it.
>
> operation attribute_seq(){
> 'attribute_seq'.println(); da.name.......
> }
> rule DataType2UDT
> transform c:UML!DataType
> to s:modeloOR!StructuredType,a:modeloOR!Attribute{
> attribute_seq();
> }
>
> The problem this one when the function has parameters.
>

Please load your UML model using the built-in UML namespace uri instead
of using UML.ecore. Here is a screenshot that shows how to do this:
http://bit.ly/8fUyjS

>
> The second mistake is that the assignment s. Model: = package (); it
> continues without working. But in the model if that exists the variable
> 'Model'

It should be s.model := package() (notice the lower-case m instead of
the upper-case M)

>
> Thank you very much
>
>
>
>

Cheers,
Dimitris

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


Current Time: Tue Apr 23 13:52:23 GMT 2024

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

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

Back to the top