What is wrong in this expression with enumeration values? [message #683379] |
Mon, 13 June 2011 12:19  |
Eclipse User |
|
|
|
Hi,
I am newbie in OCL. I am working with GMF, and Ecore models, and I am trying to add an Audit Rule with an OCL constraint. This is my constraint:
connector->forAll(r1 | r1.toInPort.logicType = #NO_WAIT implies r1.fromOutPort.logicType = #AND)'
I am getting the follwing error:
Cause: 2:46 "#" unexpected character ignored
logicType attributes are enumerations, what is wrong?
Thank you in advance, regards
Aintzane
|
|
|
|
|
Re: (no subject) [message #683922 is a reply to message #683743] |
Tue, 14 June 2011 12:16   |
Eclipse User |
|
|
|
Hi
That is a UML 1.3 chapter, so correspomdingly OCL 1.3. Seriously out of
date. Burn it.
The latest specification is at http://www.omg.org/spec/OCL/
Thanks fior the reference,
http://wiki.eclipse.org/MDT/OCL/FAQ#How_do_I_solve:_.22.23.22_unexpected_character_ignored
updated.
Regards
Ed Willink
On 14/06/2011 11:49, Aintzane wrote:
> Hi,
>
> Thank you very much, Edward. Your help has been very useful.
>
> I donwloaded a document called "Object Constraint Language
> Specification", but perhaps it is a bit old, from March 2000, I've attached it.
>
> Best regards,
>
> Aintzane
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.36316 seconds