Associating with Quality Rules
After creating and publishing a table in an ER model (except the OBS type), you can associate quality rules with the table. If Create Quality Jobs is selected in Model Design Process on the Function Configuration tab of Configuration Center, after a quality rule is associated, a quality job is automatically created in DGC Data Quality Control after the table is published. If the table has been published, the system automatically updates the corresponding quality job.
Associating with a Quality Rule and Viewing a Quality Job
- On the DGC Data Design console, choose ER Modeling from the left navigation bar.
- On the displayed page, select a model other than the OBS type. All tables created in the model are listed on the right. You can also expand a model and select an object. All tables of the object are listed on the right.
- In the table list, select a table and click its name to go to the table details page. Figure 1 ER model list
- On the displayed page, click the Standards and Rules tab. In the field list, select a field that you want to associate a quality rule with and then click Associate Rule. Figure 2 Standards and Rules tab
Anomaly Data Output Settings: If you select Generate Anomaly Data, the anomaly data is stored in the specified database based on the settings.
- In the displayed dialog box, click Add Rule. Figure 3 Associating with quality rules
In the Add Rule dialog box lists all default quality rules supported by DGC Data Quality Control. Select a rule and click OK. If these quality rules cannot meet your requirements, you can customize one. In the Add Rule dialog box, click Create to navigate to DGC Data Quality Control. On the displayed page, create a rule. See Creating Rule Templates.
Figure 4 Add Rule dialog box
After a rule is added, go back to the Associate Quality Rule dialog box. Select a rule from the rule name list, set Alarm Triggering Condition, and click OK.
- In the Alarm Triggering Condition text box, enter an expression. When a quality job is running, the system will calculate the result of the alarm condition expression and check whether to trigger an alarm based on the result of the expression. If the expression result is true, the alarm will be triggered. Otherwise, no quality alarm will be triggered.
- An alarm condition expression consists of alarm parameters and logical operators.
The alarm parameters of each rule are displayed as buttons. If you click these buttons, the alarm conditions are expressed in the sequence of alarm parameters, such as $1, $2, and $3. The variable name indicates the alarm parameter. In other words, when setting Alarm Triggering Condition, use the variable $1 to represent the first alarm parameter, $2 to represent the second alarm parameter, and so on.
Figure 5 Setting an alarm triggering condition
- View the association result. If the association is successful, click OK. If the association fails, find the failure cause, correct it, and associate the quality rule again. Figure 6 Association results
- Go back to the ER model list, locate the table that you just associated with a quality rule. In the Sync Status column, move your pointer to
and click View. Figure 7 Quality job sync status
- On the displayed page, choose the Rule Configurations tab to the rule you just added. Figure 8 Quality rules
If a table is associated with a data standard when it is created, the corresponding quality rule is generated after the table is published. You can also view the rule on the Quality Jobs page.
The following provides an example of the quality rule generated based on the data standard associated with a field:
Figure 9 Quality rules for data standards
The following provides an example of the quality rule generated based on the data standard associated with a lookup table:
Figure 10 Quality rules for data standards
Last Article: Reversing Databases
Next Article: Importing/Exporting Tables
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.