Back Forward About the Rename a Class wizard

Up

Purpose

Use the Rename a Class wizard to rename a class and all of its pattern inheritance dependent classes. In addition you can choose to rename associated objects such as work- instances, properties, activities, and flows. GRP-204 GRP-212 5.5GRP-4258 was withdrawn

The wizard reports any locked RuleSets or rules that are checked out before renaming anything.

In addition to exact matches to the specified class name to be changed, the wizard identifies references to the current class name in embedded strings, for example in property names or in embedded Java modules. The wizard displays a listing of these "inexact" matches, and you can select which to include to be renamed and which to preserve unchanged.

Starting the wizard

Select Pega button > System > Tools > Refactor Rules > Rename a Classwetma 2-16-10 to start the wizard. You can return to a previous step using the <<Back button.

Alternatively, select a class in the Application Explorer, right-click, and select Rename a Class from the context menu.

No rules are altered by the wizard until you click Next>> after reviewing additional rules to be changed on the next-to-last page. For instructions on the forms, see:

Resuming the wizard

This wizard creates a work object with prefix pxW-. To find open wizard work objects, select the menu option> Application > Tools > All Wizards. BYRNB 2/25/10

Prerequisites

You can rename a class if it meets these conditions:

  1. The class must be visible in your Access Group.
  2. The class may not be one of the standard classes, those in the Pega- RuleSets.
  3. The original class cannot have Final availability.
  4. All rules to be modified must be checked in. (If rules are checked out, check them in and restart the wizard.)
  5. All rules to be modified must belong to unlocked RuleSet Versions. You must supply the appropriate password to unlock the locked rules, or you can opt to skip them for this operation.
  6. The new name of the class must not already exist in the system. Class names need to be unique system-wide, rather than unique within a specific RuleSet.
  7. You cannot change an abstract class to a concrete class or vice versa. For example, class A- cannot be renamed to B, and B cannot be renamed to A-. SR-18197

Results

When complete, the renaming wizard changes your system in the following ways:

  1. The class is renamed.
  2. Direct and pattern inheritance references the new class name. As a result, there will be no effect on rule resolution.
  3. If the option has been selected, Work- instances associated with the class are renamed.
  4. All properties, activities, flows, and other rules that referenced the original class now reference the class by the new name.
  5. If the class is a work pool or defines an external data table, the Data-Admin-DB-Table instance is updated to reflect the new class name.
  6. The wizard creates a new History- class for the new class, and it will identify that the class has been renamed. The History- class for the old class name is deleted. PROJ-865 PROJ-1292 PROJ-1293 5.4

The old class name is retained until all changes to dependent classes and Work- instances are completed. Then the original class is deleted. If the system is stopped while renaming is in progress, you can restart the process by executing the utility from the beginning.

Related topics Class hierarchy and inheritance — Concepts and terms

Up Tools, accelerators, and wizards