--- title: "Develop custom enrichment class" slug: "develop-custom-enrichment-class" description: "Learn to create custom enrichment rules using DQSCustomValidationBase, defining field values with custom classes and applying data types effectively." tags: ["Task", "Data Quality Studio", "DQS"] updated: 2026-03-20T08:37:01Z published: 2026-03-20T17:44:40Z canonical: "docs.staedean.com/develop-custom-enrichment-class" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Develop custom enrichment class You can use a custom enrichment rule to set a field value using a custom class. To set up a custom enrichment rule, first develop the custom class to be applied. The custom class must extend the **DQSCustomValidationBase** base class. When you extend the **DQSCustomValidationBase** base class: - Enter a unique and recognizable description() for the class. The description is shown in the lookup of the **Class name** field of a custom enrichment rule. - Use these methods to indicate to which data the custom class applies: - **getTablesList()**: You can define the tables to which the custom class applies. As a result, you can select the custom class for a custom enrichment rule with one of the applicable tables defined. - **getExtendedDataTypesList()**: You can assign extended data types to which the custom class applies, for example, 'ExternalItemId'. As a result, you can select the custom class for a custom enrichment rule with a target field defined that uses the same extended data type. - **getBaseTypesList()**: You can define base data types to which the custom class applies, for example, **String** or **Date**. As a result, you can select the custom class for a custom enrichment rule with a target field defined with the same data type. - Use the **processRecord()** method to define the x++ code that defines the return value that is used as input value for the target field of the enrichment rule. The base structure of an extended **DQSCustomValidationBase** class is: ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/Images/File%20imageB07B4A86-9A4A-4136-8604-3E79186F3AB6) ## Related - [Set up enrichment rule of type Custom](/set-up-enrichment-rule-of-type-custom.md)