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 #586118] Mon, 15 February 2010 10:27 Go to next message
Maider  is currently offline Maider
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 :) .

Cheers,
Maider
Re: Making an ETL rule extend two rules [message #586136 is a reply to message #586118] Mon, 15 February 2010 10:48 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
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
Previous Topic:Could not connect to MySQL
Next Topic:how to create a gmf.affixed for contaiment Reference
Goto Forum:
  


Current Time: Thu Apr 17 00:11:24 EDT 2014

Powered by FUDForum. Page generated in 0.02480 seconds