Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL ] stereotype in SD
[ATL ] stereotype in SD [message #97726] Fri, 16 January 2009 07:21
Eclipse UserFriend
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: Tue Jul 15 14:35:52 EDT 2025

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

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

Back to the top