Java Reference
In-Depth Information
Table 4-9
Mindmap Audit Definition
Element
Property
Value
Mapping
Audit Container
Description
A set of mindmap model audits.
Id
mindmap.audits
Name
Mindmap Audits
Audit Rule
Description
Topics should not have subtopic
relationships that form a cycle.
Id
cycle
Message
A cycle was detected in the subtopics
of this Topic.
Name
Subtopic Cycle
Severity
WARNING
Use In Live Mode
false
Constraint
Body
not self->closure(subtopics)-
>includes(self)
Language
ocl
Domain Element Target
Element
Topic -> MapElement
Audit Rule
Description
All Topic elements require a valid name.
Id
name
Message
Topic has no name.
Name
Topic Name
Severity
ERROR
Use In Live Mode
true
Constraint
Body
not self.name.oclIsUndefined() and
self.name <> ''
Language
ocl
Domain Element Target
Element
Topic -> MapElement
We've defined two audits using OCL. The first detects cycles in Topic
subtopic relationships using MDT OCL's closure() iterator. If the topic is
within the set of all subtopics, a cycle is formed. The Severity of this audit is
set to WARNING and it is not used in Live Mode , meaning that the Practitioner
Search WWH ::




Custom Search