Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] For one Colaboration, no name attribute in the owned Interaction
[Acceleo] For one Colaboration, no name attribute in the owned Interaction [message #538371] Mon, 07 June 2010 13:40 Go to next message
Laviale Benoit is currently offline Laviale BenoitFriend
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 #538590 is a reply to message #538371] Tue, 08 June 2010 07:18 Go to previous messageGo to next message
Laviale Benoit is currently offline Laviale BenoitFriend
Messages: 25
Registered: April 2010
Location: Paris
Junior Member
Hi,
Its solve!
The error is that i have already an 'i' object define in an other file.
I must rename my variable (in 'inter' for exemple).
See you


Trainee
Thales Communications France

[Updated on: Tue, 08 June 2010 07:28]

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 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
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--
Re: [Acceleo] For one Colaboration, no name attribute in the owned Interaction [message #538795 is a reply to message #538635] Tue, 08 June 2010 16:13 Go to previous message
Laviale Benoit is currently offline Laviale BenoitFriend
Messages: 25
Registered: April 2010
Location: Paris
Junior Member
I think its a bug too....

I send you a mail !


Good bye!


Trainee
Thales Communications France
Previous Topic:[Announce] M2T XPAND 1.0.0RC1 is available
Next Topic:[Acceleo] Main
Goto Forum:
  


Current Time: Fri Apr 19 13:47:28 GMT 2024

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

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

Back to the top