Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » How to make query operation visible for OCL
How to make query operation visible for OCL [message #843684] Fri, 13 April 2012 05:17 Go to previous message
Piotr J. Puczynski is currently offline Piotr J. Puczynski
Messages: 17
Registered: January 2012
Junior Member
Hi,
I have a simple (hopefully) question. I am trying to figure out how I can make query operation that would be persisted for UML model and visible for OCL.

I am using OCL evaluation to help to execute UML model. I need query operations for evaluations of guards.

Currently my query operation is defined to have body constraint with opaque expression which language is 'ocl' and body is OCL expression that should be evaluated.
I run OCL evaluation in context of InstanceSpecification but OCL cannot see query operation. OCL looks for source annotation and 'ExpressionInOCL' (not OpaqueExpression). How can I add ExpressionInOCL of this query operation to UML model? Are there any good tutorials how to do it?

I looked at slideshare.net/EdWillink/enrich-your-models-with-ocl presentation but I couldn't find example for UML.

Regards,
Piotr
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Using CompleteOCLEObjectValidator to validate Ecore model using OCL constraints defined in text file
Next Topic:Parse OCL Constraints - Model Instance of an UML Profile
Goto Forum:
  


Current Time: Sat May 25 07:07:10 EDT 2013

Powered by FUDForum. Page generated in 0.02470 seconds