[Acceleo] For one Colaboration, no name attribute in the owned Interaction [message #538371] |
Mon, 07 June 2010 09:40  |
Eclipse User |
|
|
|
Hi,
I have a strange behaviour in one of my script.
[template public buildXMLSATProject(m : Model)]
<Campaign>
<Name>Général</Name>
<Ref>1</Ref>
<List>
[for (c : Collaboration | m.ownedElement)]
<Name>[c.name/]</Name> [B]# thats Run ! [/B]
<Ref>1</Ref>
<Mode>0</Mode>
<Script>
[for(i : Interaction | c.ownedBehavior)]
<Name>[i.name/]</Name> B]# Dont work[/B]
<File>[i.name/].ats</File> [B]# Dont work[/B]
<Ref>1</Ref>
<Mode>0</Mode>
[/for]
</Script>
[/for]
</List>
[...]
[/template]
In this script, eclipse detects two errors,<Name>[i.name/]</Name> & <File>[i.name/].ats</File> [ "Unrecognised variable (name) "]
When I run the script in debug, I have all the stuff for all the Objects ( m , c , and i )
But in the output file i have an error :
<Name>org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1e4d228 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1a1569b (name: Invalid_Class) (instanceClassName: null) (abstract: false, interface: false))</Name>
Why it doesn't work?! I really don't understand! ...
Thank you
Benoit
[Acceleo RC3 & M7 => Same problem ]
[Updated on: Mon, 07 June 2010 09:51] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24453 seconds