Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » XPAND Simple query
XPAND Simple query [message #630004] Thu, 30 September 2010 06:35 Go to next message
Eclipse UserFriend
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 10:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

shouldn't the expression look like

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


~Christian

[Updated on: Thu, 30 September 2010 10:08] by Moderator

Re: XPAND Simple query [message #630068 is a reply to message #630055] Thu, 30 September 2010 10:38 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 06:00:55 EDT 2025

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

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

Back to the top