Understand validating control rule violations
- Last UpdatedNov 04, 2024
- 1 minute read
When an individual reading is recorded in the MES database, the QM specification used to generate the sample is used to validate the control rules against the individual readings for the sample.
The following conditions are required to validate control rules against sample data:
-
The total number of individual readings must be at least equal to the minimum number of readings configured for a characteristic or for a specification that is linked to the characteristic before the control rule validations are performed against the current sample.
-
If the severity for a characteristic is greater than or equal to Non-Key, and a specification linked to a rule must have at least one of the use_* values set to True.
A warning message is returned to the client when there are control rule violations while recording the result data in the MES database.
If more than one result for a sample is sent to the middleware to record all the results in a single transaction, the control rules are not evaluated as each result is inserted into the MES database, but the control rules are evaluated once after inserting all the results into the database.