Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » extension of OCL visitor: property vs operation
extension of OCL visitor: property vs operation [message #1444101] Mon, 13 October 2014 16:34 Go to next message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
Gentlemen,

I'm extending OCL with specific concepts that contain ExpCS.
After adding visitors and attributions, I'm able to navigate through the attribute of the concept in which I am. e.g.:
package UML
context Action
def : anEvent : Event = [...] case self.activity.name <> null [...]


However, I'm unable to navigate to an operation like for instance
package UML
context Action
def : anEvent : Event = [...] case self.activity.getLabel() <> null [...]

do you have any hints about where it could come from ?

thanks !

julien
Re: extension of OCL visitor: property vs operation [message #1444213 is a reply to message #1444101] Mon, 13 October 2014 20:13 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Obviously you're using an extended syntax so it;s difficult to be sure
whose problem it is.

I'm guessing that for some reason the property navigation is search all
merged models while the operation is considering only one. Probably the
use of the wrong MetaModelManager API.

If it's an OCL problem you should be able to produce a pure Pivot OCL repro.

Regards

Ed Willink


On 13/10/2014 17:34, Julien DeAntoni wrote:
> Gentlemen,
>
> I'm extending OCL with specific concepts that contain ExpCS. After
> adding visitors and attributions, I'm able to navigate through the
> attribute of the concept in which I am. e.g.:
> package UML
> context Action
> def : anEvent : Event = [...] case self.activity.name <> null
> [...]
>
>
> However, I'm unable to navigate to an operation like for instance
> package UML
> context Action
> def : anEvent : Event = [...] case self.activity.getLabel() <>
> null [...]
>
> do you have any hints about where it could come from ?
>
> thanks !
>
> julien
Re: extension of OCL visitor: property vs operation [message #1446640 is a reply to message #1444213] Fri, 17 October 2014 05:11 Go to previous message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
Hi Ed,

thanks a lot, it helped.
I did not managed to create a full pivot model so that the navigation was lost at some point (strangely it worked on some properties) .

It's ok now.

thanks
Previous Topic:OCL GIT repository @NotNull annotations
Next Topic:inter-models OCLs
Goto Forum:
  


Current Time: Thu Mar 28 23:47:32 GMT 2024

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

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

Back to the top