|Re: Adding variable-value bindings to queries [message #42198 is a reply to message #42099]
||Wed, 31 October 2007 12:38
Originally posted by: cdamus.ca.ibm.com|
Yes, you can inject variables into your OCL parsing and evaluation
environment. Have a look at the
OCL Developer Guide
Customizing the Environment
topic in the SDK documentation (Eclipse Help viewer). The first heading
"Defining Global Variables" is what you need.
Alexander Dotor wrote:
> is it possible to add variable-value-pairs to a query before it is parsed?
> The idea is that I want to use other bound variables than 'self' in my
> OCL expression. I want to reference existing objects directly. In OCL
> this would have been solved by a let-expression. I don't want to use the
> let-expression and OCL do the binding but I want to directly assign it
> (maybe by some environment?).
> Is this possible and if it is, how do I achieve this?
> Alexander Dotor
Powered by FUDForum
. Page generated in 0.01595 seconds