Community
Participate
Working Groups
As noted in bug 452621, if an OCL constraint in a profile has no name, then the profile definition transformation ignores it and it (rightly so) doesn't end up in the Ecore definition and therefore does not participate in model validation. Steps to reproduce: 1. Create a UML profile with some OCL constraint on a stereotype extending some metaclass. 2. Do not give the constraint a name. If it has one by default, delete it. 3. Apply the profile to a model and the stereotype to some element that should violate the constraint. 4. Validate the model and see no problem reported for the constraint on the stereotyped element.
A new constraint should be implemented in Papyrus. It would warn users when designing and defining profiles.