EMF Live Validation [message #1771689] |
Tue, 29 August 2017 10:16  |
Eclipse User |
|
|
|
Hello,
I am using Library Validation General example for the reference to develope validation plug-in to my model.
I have already added one constraint (as per the example) . It works for the batch validation (as it gives an message to wrong attribute values as per the constraint).
For live validation, it does notify the changes and also determines the client context but does not finds the constraints binding to the clientContext.
I only have one client context.
What could be the problem ?
|
|
|
|
|
Re: EMF Live Validation [message #1773736 is a reply to message #1773735] |
Tue, 03 October 2017 16:09  |
Eclipse User |
|
|
|
Hi, Felix,
Yes, the idea was that batch validation shouldn't miss out any rules and the developer shouldn't have to repeat herself. The triggering event business for live validation was meant primarily to let the system find and evaluate only rules relevant to a particular edit. There are probably many better ways to do this that we've learned in the intervening fifteen years or however long it's been. In any case, the constraint is expected to understand that when there's no event, then it's running in the batch context. Of course, if it's specified in OCL or some other more abstract language, then it's a moot point.
HTH,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.04035 seconds