Renaming or deleting a rule

Use the following commands to rename a rule or to delete it entirely from the rule set. You access these commands by right-clicking a rule and selecting the command from the drop-down list.

Command                  

Description                        

Actions to take

Rule > Rename Rule Renames the currently selected rule
  1. Select the rule to rename in the center pane of Studio.
  2. Select Rename Rule from the Rule menu, or, right-click and select Rename Rule
  3. Enter the new name for the rule in the Input dialog box.

You must save the rule for the change to become permanent.

Edit > Delete Deletes the currently selected rule
  1. Select the rule to delete in the center pane of Studio.
  2. Select Delete from the Edit menu, or right-click and select Delete.
PolicyCenter does not require you to confirm your decision before deleting the rule.

You can use the Delete command to delete a rule only.

About renaming a rule

At a structural level, Guidewire PolicyCenter stores each rule as a separate Gosu class, with a .gr extension. The name of the Gosu class corresponds to the name of the rule that you see in the Studio Project window. PolicyCenter stores the rule definition classes in the following location in the installation directory:
  • modules/configuration/config/rules/...

If you rename a rule set, PolicyCenter renames the class definition file in the directory structure and any internal class names. It also renames the directory name if the rule has children. Thus, PolicyCenter ensures that the rule class names and the file names are always in synchronization. Always use Guidewire Studio to rename a rule. Never rename a file using your local file system.