UML2 & OCL version compatibility [message #625460] |
Wed, 14 November 2007 11:46 |
Ted Poole Messages: 10 Registered: July 2009 |
Junior Member |
|
|
I'm using the UML2 code generation off my ecore (because of all the
extras like derived unions, subsets, ocl etc), and I would like to
provide an OCL expression as the implementation of a query method.
In my ecore, I have created an EAnnotation on my EOperation, and set the
'source' to "http://www.eclipse.org/uml2/1.1.0/GenModel". I then create
a DetailsEntry in the EAnnotation with 'key' = "body" and
'value'="result = <my ocl expression>".
When I generate the model code, I do get a body generated for the
operation which seems to be using the OCL api to execute my OCL
expression - as expected.
The problem is that the generated code doesn't compile because it seems
t be using an OCL API that doesn't match up with what I have installed.
I've installed the latest releases of UML2 (2.1.1) and OCL (1.1.1) but
still I have the problem. Is the UML2 codegen producing code that calls
onto an older version of the OCL API?
Cheers,
Ted Poole
|
|
|
Powered by
FUDForum. Page generated in 0.03857 seconds