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 06:27 Go to next message
Walid Ban is currently offline Walid Ban
Messages: 27
Registered: January 2013
Junior 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 13:48 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4014
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: Thu Jul 31 23:49:17 EDT 2014

Powered by FUDForum. Page generated in 0.02298 seconds