Book a Demo

Author Topic: OCL Validation  (Read 2301 times)

tobinho

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
OCL Validation
« 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



« Last Edit: June 16, 2009, 01:41:58 am by tobinho »