# Implementing model rules in a plugin

version 7.6.6-20260801035835+0000

| Rule based configuration will be deprecated. New plugins should not use this concept. Instead, use the standard approach described in the Writing Custom Plugins chapter.

A plugin can define rules by extending RuleSource and adding methods that define the rules. The plugin class can either extend RuleSource directly or can implement Plugin and include a nested RuleSource subclass.

Refer to the API docs for RuleSource for more details.

## Applying additional rules

A rule method annotated with Rules can apply a RuleSource to a target model element.