To edit a rule, select it from the list and click on Edit.

Three options will be shown: Properties, Code and Designer.

Properties: The properties of the rule can be edited
Code: The script environment will be opened and you can insert code and queries .
Designer: Opens the design form