|Validation Problems of OCL Constraints contained in a static UML Profile [message #1755250]
||Wed, 01 March 2017 16:43
| Alexander Kraas
Registered: March 2015
at the moment, I always run into a validation problem for UML model that has applied a "static" UML Profile applied. The UML Profile contains many OCL constraints that make use of the implicit defined associations (base_MetaclassName or extension_StereotypeName) between Stereotype and UML element instances. The vaildation is realized with ValidationDelegates of OCL Pivot.
For instance, when I use the XTextConsole to validate the OCL Expression below, I get the expected result.
But, when this expression is used to define a OCL Constraint for a Stereotype contained in a "static" UML Profile, the validation fails with the following exception:
org.eclipse.ocl.pivot.internal.delegate.OCLDelegateException: The 'TestStereotype::Constraint_1' constraint result is invalid for 'TestStereotype'
- Unable to resolve stereotype TestProfile::TestStereotype
Due to the raised exception, I assume that a problem concerning the "extension_xxx" navigation to Stereotype instances may exist in the ValidationDelegate of OCL Pivot. I am wondering if someone else had a similar problem and could provide a hint for avoiding this problem. For testing purposes, I have attached a small example including a "static" UML Profile that contains only one Stereotype.
Thank you in advance,
[Updated on: Wed, 01 March 2017 16:45]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02059 seconds