Error Profile ATL transformation [message #747126] |
Sun, 23 October 2011 19:25  |
Eclipse User |
|
|
|
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 19:26] by Moderator
|
|
|
Re: Error Profile ATL transformation [message #747659 is a reply to message #747126] |
Mon, 24 October 2011 03:55  |
Eclipse User |
|
|
|
Hi Flower,
On 10/24/11 3:25 AM, Flower wrote:
> ...
> 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 think using "Support UML2 Stereotype Application" option should help.
--
Tatiana Fesenko
ModelSolv, Inc.
Model-Oriented Solutions for Service Integration
|
|
|
Powered by
FUDForum. Page generated in 0.06305 seconds