Maarten Veger (MaartenBPM)
BPM Company
Managing Consultant & Pega CLSA
BPM Company
MaartenBPM Member since 2013 11 posts
BPM Company
Posted: July 21, 2020
Last activity: September 13, 2020
Posted: 21 Jul 2020 8:48 EDT
Last activity: 13 Sep 2020 7:08 EDT

Best practice for changing a class from a data transform?

What is the best practice way of changing a class from a data transform? I want to specialize a class based on a property value.

If you hard set the pxObjClass from the data transform, you get a severe warning: Setting the pxObjClass property will change the class of the containing page. This is not a recommended best practice.

However, I've seen this as an example during an e-course.

Alternatives in my knowledge are:

- Using an activity in stead of DT with the Page-Change-Class method: This will also give warnings for using an activity;

- Using a function to call a generic activity 'ChangeClass' that only changes class using the Page-Change-Class giving in a param.

Pega Platform Case Management Other Industry Lead System Architect