Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Need help in constraint syntax
Need help in constraint syntax [message #1046090] Sun, 21 April 2013 10:27 Go to next message
Walid Ban is currently offline Walid BanFriend
Messages: 53
Registered: January 2013
Member
Hi,
Using Papyrus v0.10 (Eclipse Kepler Version), I added OCL constraints in my profile but the OCL Essential editor show a syntax error that i didn't understand, here's an example:

self.send -> forAll (o | o.oclIsKindOf (ObjectBase) or o.oclIsKindOf (ObjectMultiviews))

(ObjectBase and ObjectMultiviews are two Life Line stereotypes)
The Essential Editor considers "send" an unresolved property.
Do you have any idea what i have to modify in the constraint to resolve this error?
Thank you
Regards
Re: Need help in constraint syntax [message #1046286 is a reply to message #1046090] Sun, 21 April 2013 17:48 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

"The Essential Editor considers "send" an unresolved property. "

seems like a very accurate diagnosis; send is not resolved.

Use the hovertext on self to see if it's the type you intended. The type
is defined by the context type in the Properties View.

Use the completion assist following "self." to see what might be available.

Kepler has not been release so there is no definitive Kepler version.
You need to indicate which milestyone/nightly/... builds you are using.

Regards

Ed Willink


On 21/04/2013 11:27, Walid Ban wrote:
> Hi, Using Papyrus v0.10 (Eclipse Kepler Version), I added OCL
> constraints in my profile but the OCL Essential editor show a syntax
> error that i didn't understand, here's an example:
>
> self.send -> forAll (o | o.oclIsKindOf (ObjectBase) or o.oclIsKindOf
> (ObjectMultiviews))
>
> (ObjectBase and ObjectMultiviews are two Life Line stereotypes) The
> Essential Editor considers "send" an unresolved property.
> Do you have any idea what i have to modify in the constraint to
> resolve this error?
> Thank you
> Regards
Previous Topic:OMG OCL specification Issue Tracking
Next Topic:HOW TO PARSE UML2.1 class diagram with OCL?
Goto Forum:
  


Current Time: Fri Apr 26 19:50:51 GMT 2024

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

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

Back to the top