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 06:35 Go to next message
arise76  is currently offline arise76
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 10:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6131
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

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

Report message to a moderator

Re: XPAND Simple query [message #630068 is a reply to message #630055] Thu, 30 September 2010 10:38 Go to previous message
arise76  is currently offline arise76
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: Sat Jul 26 15:29:14 EDT 2014

Powered by FUDForum. Page generated in 0.01999 seconds