Hi,
I want to check, if in a profile property at least one Doors Requirement is attached to a HE.
my script is reporting everytime an error (even if something is attached):
-- util to check comment
def:
check(comment:String, message:String):String
= if comment.oclIsUndefined() then
message
else
if comment.trim()='' then
message
else
''
endif
endif
inv:
let
safetyCriterion:String = self.getProfilePropertyValue('user_safety_criterion' )->first().oclAsType(String),
val1:String= check(safetyCriterion, 'safetyCriterion')
in
if not self.integrityLevel.oclIsUndefined() then
val1=''
else
true
endif