ATL: multiple source pattern elements [message #76489] |
Wed, 12 March 2008 11:51  |
Eclipse User |
|
|
|
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 14:55   |
Eclipse User |
|
|
|
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 04:13  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.08177 seconds