|Using Java APIs [message #1765516]
||Sun, 11 June 2017 20:40
| Jeni Martin
Registered: November 2012
I want to extract the context for which an OCL has been violated in a separate model. For that purpose, first, I used OCL APIs in a standalone java application to validate a UML model. The UML model is an instance of a UML profile which has some constraints.
I read the previous posts regarding that and I found out Pivot object instead of UML objects are used.
I basically used the code that one of the members previously posted in the forum (with small changes). I attach the project which includes the code, profiles and models. When I ran the code, I receive an exception that I cannot figure it out. I should say that when I validate the model by right click-> OCL->validate , it returns the validation result correctly.
Sorry if my question is very simple, but any help is appreciated.
(Size: 42.43KB, Downloaded 33 times)
Powered by FUDForum
. Page generated in 0.01951 seconds