Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL: multiple source pattern elements
ATL: multiple source pattern elements [message #76489] Wed, 12 March 2008 15:51 Go to next message
Eclipse UserFriend
Originally posted by: hdubourg.sodifrance.fr

Hello,

I'm trying to use the multiple source pattern feature but I'm facing an
error I can't understand.
The minimal ATL transformation I have a problem with is:

rule attribute_class {
from
in1 : kdm!ClassUnit, in2 : kdm!MemberUnit
to
output : uml2!Class (
)
}

And here is the error log. It looks like there is only one input local
variable:

SEVERE: A.main() : ??#24 null
SEVERE: local variables = {self=KDMtoUML2 : ASMModule}
SEVERE: local stack = []
SEVERE: A.__exec__() : ??#8 null
SEVERE: local variables = {e=TransientLink {rule = 'attribute_class',
sourceElements = {in1 = input!myClass}, targetElements = {output =
output!<notnamedyet>}, variables = {}}, self=KDMtoUML2 : ASMModule}
SEVERE: local stack = []
SEVERE: A.__applyattribute_class(1 : NTransientLink;) : ??#7 null
SEVERE: local variables = {in1=input!myClass, link=TransientLink {rule
= 'attribute_class', sourceElements = {in1 = input!myClass},
targetElements = {output = output!<notnamedyet>}, variables = {}},
self=KDMtoUML2 : ASMModule}
SEVERE: local stack = []
SEVERE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to
allow continuation after errors).
SEVERE: null
java.lang.RuntimeException


Is there something I'm doing wrong?
Thanks a lot for your help.

Hugues Dubourg
Re: ATL: multiple source pattern elements [message #76535 is a reply to message #76489] Wed, 12 March 2008 18:55 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

Do you have

-- @atlcompiler atl2006

at the top of your file?



Regards,

Frédéric Jouault

Hugues Dubourg a écrit :
> Hello,
>
> I'm trying to use the multiple source pattern feature but I'm facing an
> error I can't understand.
> The minimal ATL transformation I have a problem with is:
>
> rule attribute_class {
> from
> in1 : kdm!ClassUnit, in2 : kdm!MemberUnit
> to
> output : uml2!Class (
> )
> }
>
> And here is the error log. It looks like there is only one input local
> variable:
>
> SEVERE: A.main() : ??#24 null
> SEVERE: local variables = {self=KDMtoUML2 : ASMModule}
> SEVERE: local stack = []
> SEVERE: A.__exec__() : ??#8 null
> SEVERE: local variables = {e=TransientLink {rule =
> 'attribute_class', sourceElements = {in1 = input!myClass},
> targetElements = {output = output!<notnamedyet>}, variables = {}},
> self=KDMtoUML2 : ASMModule}
> SEVERE: local stack = []
> SEVERE: A.__applyattribute_class(1 : NTransientLink;) : ??#7 null
> SEVERE: local variables = {in1=input!myClass, link=TransientLink
> {rule = 'attribute_class', sourceElements = {in1 = input!myClass},
> targetElements = {output = output!<notnamedyet>}, variables = {}},
> self=KDMtoUML2 : ASMModule}
> SEVERE: local stack = []
> SEVERE: ****** END Stack Trace
> INFO: Execution terminated due to error (see launch configuration to
> allow continuation after errors).
> SEVERE: null
> java.lang.RuntimeException
>
>
> Is there something I'm doing wrong?
> Thanks a lot for your help.
>
> Hugues Dubourg
Re: ATL: multiple source pattern elements [message #76583 is a reply to message #76535] Thu, 13 March 2008 08:13 Go to previous message
Eclipse UserFriend
Originally posted by: hdubourg.sodifrance.fr

I did not...
Since I got the very last version of the ATL plugin I did not think there
could be such an option to write to enable the 2006 features...
Shame on me.

Thanks a lot.

Hugues Dubourg

"Fr
Previous Topic:[ATL] editing Models
Next Topic:[OVTR] General question about QVT Spec
Goto Forum:
  


Current Time: Thu Mar 28 09:35:09 GMT 2024

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

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

Back to the top