[Acceleo] For one Colaboration, no name attribute in the owned Interaction [message #538371] |
Mon, 07 June 2010 13:40 |
Laviale Benoit Messages: 25 Registered: April 2010 Location: Paris |
Junior Member |
|
|
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 ]
Trainee
Thales Communications France
[Updated on: Mon, 07 June 2010 13:51] Report message to a moderator
|
|
|
|
Re: [Acceleo] For one Colaboration, no name attribute in the owned Interaction [message #538635 is a reply to message #538590] |
Tue, 08 June 2010 09:14 |
|
This is a multi-part message in MIME format.
--------------080200050307040202050501
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Benoit,
That sure seem like a bug to me though. Your template with a "i"
variable is not in the same scope as where you had the parsing errors is it?
Do you think you would be able to reproduce the same error with a basic
example to provide us with a sample in a bugzilla?
Laurent Goubet
Obeo
Laviale Benoit wrote:
> It's solve. It makes an error because I have a Template where the 'i'
> variable is defined...
> See You
--------------080200050307040202050501
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------080200050307040202050501--
|
|
|
|
Powered by
FUDForum. Page generated in 0.03924 seconds