Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: tobinho on June 15, 2009, 07:34:46 pm

Title: OCL Validation
Post by: tobinho on June 15, 2009, 07:34:46 pm
Hi,

i would like to adopt a ocl validation to my metamodel in ea.  There I would like to check the stereotype of an specific association.

I tried:

1. self.association.isStereotyped('stereotypename1')

2. self.taggedvalue->select(tv|tv.name='taggedvaluename')

but by validating (ctrl+alt+v) in a concrete model ea always create the ocl warning - also in case of true by adding an association with the stereotype ' stereotypename1' to the element to validate

whats`repsonible for that behaviour ? have anyone a idea ?

How can i poll taggedvalues or stereotypes in an ocl expression ?

Is it possible to poll taggedvalues or stereotypes by ocl / enterprise architect ?


Thank`s