Date: Fri, 29 Mar 2024 01:24:43 +0100 (CET) Message-ID: <999269339.1311.1711671883470@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1310_1754839782.1711671883470" ------=_Part_1310_1754839782.1711671883470 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If you applied the =C2=ABvalidationRule=C2=BB stereotype to the = Constraint element, you must specify the following validation rule properti= es in its Specification window: Abbreviation, Error Message, and Severity.
To specify the validation rule properties
Specify the following properties:
Abbreviation. Sel= ect the Abbreviation property value box, click
a= nd type a short word, phase, acronym of the validation rule. It allows= you to distinguish the validation rules among other rules when sorting or = filtering.Error Message. Se=
lect the Error Message property value box, click
If you need to define the variable error message, you can embed expressi= ons directly in the Error Message value box by using curly= brackets - {}. Everything between them is treated as an expression and eva= luated for each validation result. Expressions are treated as OCL2.0 expres= sions by default, but you can also use binary expressions: {bin: <binary= expression>}. For example, in the following error message the budget is= calculated according to variables. The result of the expression is pr= ovided as number in the Validation Results panel, e.g. Budget not balan= ced - overbudget by $500.
Budget n= ot balanced - overbudget by { ResearchProject::allInstances().budget->sum() -=20 Sponsor::allInstances().contribution->sum()}$
You can insert a hyperlink. Learn more about defining hyperli= nks >>
fatal - for critical e= rrors such as model corruption or model is invalid according to the UML met= amodel. This severity level is mostly reserved for future use.
The icons on invalid elements in the model depend on the selected severi= ty level described above. Lear= n more about invalid elements representation >>
You can customize severity levels. How to customize severity levels >>