Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL ] stereotype in SD
[ATL ] stereotype in SD [message #97726] Fri, 16 January 2009 12:21
Rasha is currently offline RashaFriend
Messages: 61
Registered: July 2009
Member
Hi,

I’m trying to select a lifeline according to its stereotype, but it raises
an error
ERROR: get unsupported on OclAny.

However, this helper works fine with the class and usecase diagrams.
I use ATL 2.0.2 and papyrus 1.11

helper context UML!Element def: hasStereotype(stereotype :
String) : Boolean =
self.getAppliedStereotypes()-> exists (c | c.name.stereotype);

rule Lifeline {
from
s : UML!Lifeline (s.hasStereotype('myStereo'))
to
t : UML!Lifeline (
name <- s.name)
}

Thanks in advance,

Rasha
Previous Topic:[ATL]pb with starter guide example - antlr/TokenStream
Next Topic:[ATL] New documentation strategy
Goto Forum:
  


Current Time: Fri Apr 19 23:52:59 GMT 2024

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

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

Back to the top