# Creating a rule file

## Procedure

1. Select the Create option to create the rule file of Drools format.

   ![New Rules File dialog box.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Repo-Rules_CreateStep2.png)
2. In the Type of rule resource list, select the format of the file you want to create: New DRL (rule package).
3. Click Finish to validate the operation and close the wizard.

   A rule editor opens in the design workspace, in which you must manually define the rules you want to use in simplified Drools language.

   The figure below shows an example of a defined rule. ![Example of a defined rule.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Repo-Rules_Create2Step2.png)