Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Error Profile ATL transformation
Error Profile ATL transformation [message #747126] Sun, 23 October 2011 23:25 Go to next message
Flower Missing name is currently offline Flower Missing nameFriend
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 ()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 23:26]

Report message to a moderator

Re: Error Profile ATL transformation [message #747659 is a reply to message #747126] Mon, 24 October 2011 07:55 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 62
Registered: July 2009
Member
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: Sat Sep 21 04:32:38 GMT 2024

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

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

Back to the top