Skip to main content



      Home
Home » Modeling » ATL » Problem when using GetValue(Using EMFTVM though I think that's not related)
Problem when using GetValue [message #1218486] Fri, 29 November 2013 04:42 Go to next message
Eclipse UserFriend
Hi, I'm using EMFTVM but I don't think that's related to this issue.

I am using getValue() to get the value of different stereotypes' attributes and I'm getting different return values on different transformations, let me show you:

On transformation 'A' I get stuff like this:
Sequence{10e5a71:Profile!Action}


While on transformation 'B' I get stuff like this:
Sequence{Map Elements:View, Incidents:View, Information View:View, Snapshots:View}



The stereotype's attribute in both cases is a Sequence pointing to other stereotyped elements, and as you can see in the transformation 'A' I'm getting returned the stereotypeApplication of the element the value points to, while in transformation 'B' I'm getting a Stereotype, rather than the stereotype application (or so I think).

So why is this different?

The only thing I'm doing different in these transformations (I think) is that in one I have the profile as an input model, and in the other one I do not, I really don't know what else could it be and I don't really understand why this would make it different, is there any other reason this could be happening? Because as it is right now I would rather not import the profile, but if I have to I guess I will.

Thanks in advance, let me know if there's anything else you need to know about the transformations.
Regards,
Javier
Re: Problem when using GetValue [message #1219009 is a reply to message #1218486] Fri, 29 November 2013 10:13 Go to previous messageGo to next message
Eclipse UserFriend
EMFTVM prints different strings for model elements for which the model/metamodel are given. There may be nothing wrong with your transformation.
Re: Problem when using GetValue [message #1219118 is a reply to message #1219009] Mon, 02 December 2013 02:34 Go to previous message
Eclipse UserFriend
I'm using EMFTVM in both metamodels so I'm not sure if they both should be the same. Also I was getting an exception when I tried to use this data in the same way but I did find a workaround so I guess that it's ok for now, I can't really understand where the problem comes from or why does it happen but at least I made it work differently.
Previous Topic:[EMFTVM] null pointer exception when executing transformation
Next Topic:Please help me to check the helper context in ATL
Goto Forum:
  


Current Time: Wed Jul 23 13:30:01 EDT 2025

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

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

Back to the top