Hello dear forum members, I'm new to medini analyze and I'm trying to write a constraint in OCL to define a verification rule for the APR (Analyse Préliminaire des Risques) section, and more specifically, I want to ensure that the AMDEC severity rating is always between 1 and 10.
Here’s what I’m trying to do:
In Medini, under the Hazard Analysis and Risk Assessment section, I access APR elements.
Each element should have a severity rating (gravité) defined.
I want to create an OCL rule that checks this value is within the acceptable range (1 ≤ AMDEC cotation ≤ 10).
I’m attaching some screenshots to make things clearer.


Can i have help to declare this constraint in OCL, and possibly where exactly it should be applied (e.g., class, stereotype)?
Thank you very much in advance for your help!
Best regards,
Safa DJELEL