|Re: oclIsTypeOf() [message #1770359 is a reply to message #1770298]
||Thu, 10 August 2017 11:59
| sonny selhorst
Registered: May 2015
Thank you for your reply. I have tried both actually, and none worked. As you said, this might be due to the fact that primaryKey is an enumeration literal.
For my other tools I just used the statement aql:self.attribute.attributeType=uMLEER::AttributeType::primaryKey, which works fine.
But now, the self is an entity, which can contain multiple attributes, but can only contain one attribute with the type primaryKey. So I made a validation rule that should count how many attributes there are with the datatype primaryKey. If there is more than one, there is an error.
So what I need to know is how i can count how many instances of attribute have the type primaryKey for the self.
Thank you very much for your help in advance.
Powered by FUDForum
. Page generated in 0.01925 seconds