Where are detailed specifications of medini specific functions available such as getProfilePropertyValue() ?
I would expect to see such information in medini™ analyze
Scripting and API Documentation but could not find.
The following statement is based on the example in "medini™ analyze Metamodel Documentation" (i.e. the usage of getProfilePropertyValue(...)->first().oclIsUndefined() ), but it returns the error message Unknown profile property "user_category" if the profile property is not defined and in some cases returns NO even if it's defined, and I wanted to know the details of the function...
self.element.oclAsType(safetyModel::Failure).effects->iterate(e; acc:String='' |
if e.oclAsType(safetyModel::Failure).getProfilePropertyValue('user_category')->first().oclIsUndefined()
then
acc.concat('NO | ')
else
acc.concat('YES | ')
endif
)