Skip to main content
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded. Click here to continue your progress in the latest version.

Superclass feature

Data transform superclass feature

Developers can make data transforms more modular by using a superclass. You can combine several data transforms using the superclass feature to set values at multiple levels of the class hierarchy. Taking advantage of this feature improves the maintainability of data transforms.

When the superclass feature is enabled on data transforms, at runtime, Pega Platform™:

  • Identifies the parent of the current class
  • Identifies the next level parent until the highest parent class is located
  • Finds the data transform
  • Invokes data transforms

In the following image, click the + icons to learn more about each part of the runtime process.

Data transform superclass feature use case

Consider a Claim class with a Home subclass. The Home subclass, in turn, has a Rental subclass with data transforms at each level that sets the default values. You set your data transforms so that common default values are set in the Claim class, and specific values are set in the subclasses.

The case type requires two fields found in parent classes: the Date of loss and the Address fields. You set the SetDefault data transform on each class so that the common default values for Date of loss and Prefix (case ID prefix) are set in the Claim class, the Address is set in the Home class, and Name on lease is set in the Rental class.

Data Transform - Superclassing Scenario

The following image shows the rule execution sequence of SetDefault data transforms that are invoked when case type Rental is created and the superclass feature is enabled on all data transforms. Click the + icons to learn more about each rule execution step.

Check your knowledge with the following interaction.

Configure the superclass feature for data transforms

To configure the superclass feature, from the Dev Studio workspace, create a data transform with the same class name at each level and ensure the Call superclass data transform option is selected on the desired data transform. If properties are specified in both the parent and subclasses, the data transform in the subclass overwrites the data transform in the parent class.

Data Transform - Superclassing how to setup

Pega Platform comes with standard pyDefault data transforms in the work classes from which the case types inherit. The standard Work- pyDefault data transform sets property values that are used in all case types. The properties include work status, work urgency, and operator organization information.

Tip: You can override these default settings in the case type pyDefault data transform. For example, the Work- pyDefault work urgency value is set to 10. If you want to prioritize cases in your case type, you can change the default urgency value for all new cases to 40.

Check your knowledge with the following interaction.

This Topic is available in the following Modules:

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice