Understand logging control rule violations
- Last UpdatedNov 04, 2024
- 1 minute read
Control rule violations are logged in the ControlRuleViolations attribute in the SRO. A log message related to the rule violation is logged to the Logger. If a specification is attached to more than one rule, then the following occurs:
-
Each rule attached to a specification is evaluated and validated in the order of rule ID.
-
A single string concatenating each control rule violation description, separated by semicolons, is returned to the client.
The format of this attribute is:
[ChartType]:ID(RuleID):RuleName;ID(RuleID):RuleName;[ChartType]:ID(RuleID):RuleName;
where ChartType is the name of the chart type that was used in triggering the rule violation, RuleID is RuleID number from SPC_Rule table, and RuleName is the text rule description from SPC_Rule table.
It is possible to have multiple chart types and rules within the string.
-
Each control rule violation is separately logged in the MES database (sample_char_rule_link) against the most recent sample that caused the rule violation(s).
A control rule for a sample characteristic recorded in the Sample_Char_Rule_Link table against the most recent sample is removed from this table when a new result data is recorded for the most recent sample characteristic and the result data, when converted to a chart point, no longer violates that rule.