Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Making an ETL rule extend two rules
Making an ETL rule extend two rules [message #514494] Mon, 15 February 2010 15:27 Go to next message
Maider  is currently offline Maider Friend
Messages: 6
Registered: February 2010
Junior Member
Hi,

I'm trying to make an ETL rule extend two others. My code looks similar to the following:

rule CopyChild
transform s : Source!Child
to t: Target!Child
extends CopyMom, CopyDad {
t.name := t.name;
}

rule CopyMom
transform s : Source!Mom
to t : Target!Mom {
t.surname2 := t.surname2;

}

rule CopyDad
transform s : Source!Dad
to t : Target!Dad {
t.surname := t.surname;
}

However, I get an error at the first rule that says "Rule ',' not found". Any suggestion to what I'm doing wrong would be very appreciated Smile .

Cheers,
Maider
Re: Making an ETL rule extend two rules [message #514500 is a reply to message #514494] Mon, 15 February 2010 15:48 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Maider,

This is a bug. Could you please file a bug report and copy the link here?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon

Cheers,
Dimitris

Maider wrote:
> Hi,
>
> I'm trying to make an ETL rule extend two others. My code looks similar
> to the following:
>
> rule CopyChild
> transform s : Source!Child
> to t: Target!Child
> extends CopyMom, CopyDad { t.name := t.name;
> }
>
> rule CopyMom
> transform s : Source!Mom
> to t : Target!Mom { t.surname2 := t.surname2;
>
> }
>
> rule CopyDad
> transform s : Source!Dad
> to t : Target!Dad { t.surname := t.surname;
> }
>
> However, I get an error at the first rule that says "Rule ',' not
> found". Any suggestion to what I'm doing wrong would be very
> appreciated :) .
> Cheers,
> Maider


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Making an ETL rule extend two rules [message #514507 is a reply to message #514500] Mon, 15 February 2010 16:14 Go to previous messageGo to next message
Maider  is currently offline Maider Friend
Messages: 6
Registered: February 2010
Junior Member
Hi Dimitris,

Thanks for your quick reply.

Sure, here is the link.

(I hope I did it right)

Cheers,
Maider
Re: Making an ETL rule extend two rules [message #514525 is a reply to message #514507] Mon, 15 February 2010 16:58 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Thanks Maider! It's now been fixed in the SVN and interim update site.

Cheers,
Dimitris

Maider wrote:
> Hi Dimitris,
>
> Thanks for your quick reply.
>
> Sure, here is the https://bugs.eclipse.org/bugs/show_bug.cgi?id=302872
>
> (I hope I did it right)
>
> Cheers,
> Maider
Re: Making an ETL rule extend two rules [message #514544 is a reply to message #514525] Mon, 15 February 2010 17:53 Go to previous messageGo to next message
Maider  is currently offline Maider Friend
Messages: 6
Registered: February 2010
Junior Member
Thanks a lot Dimitris!! It seems to be working fine now.

Cheers,
Maider
Re: Making an ETL rule extend two rules [message #586148 is a reply to message #514500] Mon, 15 February 2010 16:14 Go to previous messageGo to next message
Maider  is currently offline Maider Friend
Messages: 6
Registered: February 2010
Junior Member
Hi Dimitris,

Thanks for your quick reply.

Sure, here is the https://bugs.eclipse.org/bugs/show_bug.cgi?id=302872

(I hope I did it right)

Cheers,
Maider
Re: Making an ETL rule extend two rules [message #586177 is a reply to message #586148] Mon, 15 February 2010 16:58 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Thanks Maider! It's now been fixed in the SVN and interim update site.

Cheers,
Dimitris

Maider wrote:
> Hi Dimitris,
>
> Thanks for your quick reply.
>
> Sure, here is the https://bugs.eclipse.org/bugs/show_bug.cgi?id=302872
>
> (I hope I did it right)
>
> Cheers,
> Maider
Re: Making an ETL rule extend two rules [message #586212 is a reply to message #514525] Mon, 15 February 2010 17:53 Go to previous message
Maider  is currently offline Maider Friend
Messages: 6
Registered: February 2010
Junior Member
Thanks a lot Dimitris!! It seems to be working fine now.

Cheers,
Maider
Previous Topic:Eugenia: Nodes with images instead of shapes
Next Topic:attaching eugenia generated diagram with editor
Goto Forum:
  


Current Time: Thu Apr 18 21:22:15 GMT 2024

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

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

Back to the top