Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » Error Profile ATL transformation
Error Profile ATL transformation [message #747126] Sun, 23 October 2011 19:25 Go to next message
Eclipse UserFriend
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 ()Confused (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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[ATL] how can I get an XML schema equivalent to the metamodel
Next Topic:Error InterfaceRealization and values upper- lower
Goto Forum:
  


Current Time: Wed Jul 16 12:45:25 EDT 2025

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

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

Back to the top