Live constraints validation [message #1745012] |
Tue, 04 October 2016 04:22  |
Eclipse User |
|
|
|
Hello,
I would like to define ocl constraints on the UML metamodel and being able to automatically evaluate them as I am drawing new UML models. I am not sure whether Papyrus allows me to do that.
I wonder whether there is a way to integrate my ocl constraints into the tool.
For example, I try to use an ocl file like this:
import uml: 'http://www.eclipse.org/uml2/4.0.0/UML#/'
context uml::Class
inv CamelCaseName: name.at(1)=name.at(1).toUpperCase()
and integrate it into the tool's validation process so that automatically it gives me an error when I draw a Class with lower case name.
I would like to avoid having to choose the "Validate" option, each time I modify my model. I would like such a validation to be automatic.
is that possible?
Than you very much.
Bea
|
|
|
|
Powered by
FUDForum. Page generated in 0.02804 seconds