Error Profile ATL transformation [message #747126] |
Sun, 23 October 2011 23:25 |
Flower Missing name Messages: 8 Registered: October 2011 |
Junior Member |
|
|
Hi all,
I need help, I transform a UML model refined with a profile and need to know if a class is assigned the stereotype "Service", use the "getAppliedStereotypes ()" in the following helper
helper context UML2! Class def: isService (): Boolean =
if (self.getAppliedStereotypes () -> select (g | g.name = 'Service') -> NotEmpty ())
then true else false endif;
But I find the following error:
org.eclipse.m2m.atl.engine.vm.VMException: Could not find operation getAppliedStereotypes on UML2! Class HAVING supertypes: [UML2! Classifier, OclType, OclAny] (including Java operations)
at MUML2! Class,. isService () (uml2java.atl [94:5-94:33])
local variables = {self = IN! Class1_1}
local stack = [Sequence {}]
I feel something is missing but I realize, of course thank you very much to anyone who can help me,
Greetings!
[Updated on: Sun, 23 October 2011 23:26] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03621 seconds