|
|
Re: oclIsTypeOf() [message #1770359 is a reply to message #1770298] |
Thu, 10 August 2017 11:59 |
sonny selhorst Messages: 60 Registered: May 2015 |
Member |
|
|
Hey Ed,
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.
Kind regards,
Sonny Selhorst
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02286 seconds