Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XPAND Simple query
XPAND Simple query [message #630004] Thu, 30 September 2010 10:35 Go to next message
arise76  is currently offline arise76 Friend
Messages: 15
Registered: March 2010
Junior Member
Hi,

I want to define a template in which I only want to use UseCase which are not a type of Include or extend usecase. I use following code, but markers are highlighted that include and extend are list so boolean is expected. can any one provide hint, how to resolve this.


«EXPAND usecases FOREACH eAllContents.typeSelect(UseCase).reject(e|e.extend || e.include)»


Thanks in advance,
G.M
Re: XPAND Simple query [message #630055 is a reply to message #630004] Thu, 30 September 2010 14:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

shouldn't the expression look like

«EXPAND usecases FOREACH eAllContents.typeSelect(uml::UseCase).reject(e|!e.extend.isEmpty || !e.include.isEmpty)»


~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 30 September 2010 14:08]

Report message to a moderator

Re: XPAND Simple query [message #630068 is a reply to message #630055] Thu, 30 September 2010 14:38 Go to previous message
arise76  is currently offline arise76 Friend
Messages: 15
Registered: March 2010
Junior Member
Thanx Christian, this is exactly I was looking for.

Best regards,
G.M
Previous Topic:EDate and XPand
Next Topic:Misaligned feature name problems after upgrading to SR1
Goto Forum:
  


Current Time: Thu Apr 25 08:33:57 GMT 2024

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

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

Back to the top