Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » acceleo expression(acceleo expression)
acceleo expression [message #1761383] Wed, 10 May 2017 12:24 Go to next message
Elsa Enam is currently offline Elsa EnamFriend
Messages: 21
Registered: April 2017
Junior Member
Hello,

[for cl : ClassName | cl.attributeName = knownVariable/]
[/for]

I want to use this expression but it's not correct. In fact, I want to restrict the elements to those who have an attribute equal to a variable

Can you give me another experssion

Thank you
Re: acceleo expression [message #1761386 is a reply to message #1761383] Wed, 10 May 2017 12:45 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7679
Registered: July 2009
Senior Member
Hi

Very difficult without your model, but I might expect to see ...->select(cl | cl.attributeName = knownVariable). But I would also expect ClassName to be multi-valued.

Regards

Ed Willink
Re: acceleo expression [message #1761388 is a reply to message #1761386] Wed, 10 May 2017 13:12 Go to previous messageGo to next message
Elsa Enam is currently offline Elsa EnamFriend
Messages: 21
Registered: April 2017
Junior Member
thank you it works Very Happy

Is the language used for an acceleo project OCL ?

Thank you
Re: acceleo expression [message #1761397 is a reply to message #1761388] Wed, 10 May 2017 13:46 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7679
Registered: July 2009
Senior Member
Hi

Sorry. RTFM.

Regards

Ed Willink
Re: acceleo expression [message #1766148 is a reply to message #1761397] Fri, 16 June 2017 13:18 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hi Elsa,

Yes, the language used by Acceleo under the hood is OCL. You can find the documentation on the wiki, especially about the operation reference.

Laurent Goubet
Obeo
Previous Topic:Acceleo Documentation
Next Topic:Operator and
Goto Forum:
  


Current Time: Sat Nov 09 01:13:33 GMT 2024

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

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

Back to the top