Example to Prevent Change of Status after a Certain Level
- Last UpdatedJul 04, 2024
- 1 minute read
This is to allow a user to move an object into a For Check state but prevent them from moving it out. A more privileged user will have the task of promoting it to Checked.
Create a PEROP that denies modify and delete operations on STALNK (status link) elements for attribute VALREF (status value reference) if the current value of Design Status is For Check. Here is the condition.
COND ( ATTRIB OWNER OF VALREF EQ ID /DesignStatus AND ATTRIB DESC OF VALREF EQ 'For Check' )
A suitable error message would be: DAC: You may not change the Design Status of this object as it is awaiting Check.