|[ATL] UML <Enumeration> is OclUndefined [message #558186]
||Fri, 10 September 2010 13:13
Registered: September 2010
I've got a serious problem with managing UML Enumerations in an ATL transformation. This last, takes in input an UML model on which the MARTE profile is applied. In particular, I would like to retrieve the value of the tagged value named schedPolicy, from an UML Node stereotyped with <<Scheduler>> (or any other stereotype generalized by <<Scheduler>>, but this is just a detail).
The UML model comesfrom a Magic Draw exportation process.
Navigating the UML model with the Eclipse UML Model Editor, it's clear that the schedPolicy of the interested UML Node is setted and its value is PS, that is one of the enumeration literals.
So, I've written the following line, trying to retrieve this value:
where s is the <<Scheduler>> stereotype (resulting from the getAppliedStereotype('GRM::Scheduler') operation) and hwRes is the UML Node stereotyped with <<Scheduler>>, but it returns an OclUndefined.
Anyone can help me, please? Many thanks in advance.
Powered by FUDForum
. Page generated in 0.01790 seconds