Validation Problems of OCL Constraints contained in a static UML Profile [message #1755250] |
Wed, 01 March 2017 11:43  |
Eclipse User |
|
|
|
Dear community,
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.
self.extension_TestStereotype.taggedValue->notEmpty()
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
at org.eclipse.ocl.pivot.internal.delegate.OCLValidationDelegate$CheckingConstraintEvaluator.handleInvalidResult(OCLValidationDelegate.java:116)...
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,
Alexander
[Updated on: Wed, 01 March 2017 11:45] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10793 seconds