|Dos/Don'ts for OCLinEcore/Pivot? [message #1248811]
||Mon, 17 February 2014 17:37
| Ricardo CaWal
Registered: January 2013
May I ask you if there is some kind of "best practices guide" ou a "don't EVER do this: the companion book" to using OCLinEcore/Pivot within an Ecore model?
I'm having a lot of problems with properties derivations and model validation every time I try to add an instance of a new class into a model.
As my Ecore model has a lot of inheritance and overriden methods (and even a lot of multiple inheritance), so maybe I'm doing something wrong.
Just to illustrate one of the problems: when I add an instance of a new class into the model, derivations of atributtes of instances of other classes (that were working so far) just stop working. Even the Xtext OCL Console retunrs some error like "OCL evaluation result of '1.0::oboroeditor::Relationship.relatedElement' is invalid // Failed to evaluate 1.0::oboroeditor::Relationship.relatedElements() // null". And this problem seems to happen in the evaluation of derived attributes that were/should be overwriten in specialized classes.
In time: Yesterday I'have found this bug ticket (https://bugs.eclipse.org/bugs/show_bug.cgi?id=339952#c4) that talks about "if/oclIsKindOf cascades". I didn't find anything about it, but I think maybe it's related to my problem. Where I can find more of it?
Powered by FUDForum
. Page generated in 0.02487 seconds