|Constraints with OCLInEcore across multiple model files [message #1236974]
||Tue, 28 January 2014 14:17
| Tilman Stehr
Registered: August 2013
I'm trying to implement OCL constraints with OCLInEcore for an Ecore model that is split across multiple *.ecore model files. The architecture consists of a "base" file that contains base types and several "extension" files which provide specialized types extending the base types.
The constraints defined in the model file seem to work, but only as long as they use types that are defined in the same *.ecore file. When I try to use types defined in another file however, for example by calling oclAsType, validation fails. My guess is that the other model file is not available and therefore its type can't be resolved when evaluating the constraint.
Is it possible to get this to work? Do I have to somehow register all models that are needed in the constraints and provide paths to the *.ecore files?
I tested this with OCL 4.1.1 running on Eclipse Kelper and EMF 2.9
I'd be very grateful for any hints.
Powered by FUDForum
. Page generated in 0.06124 seconds