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.