How Superclass data transform will work when we keep different values of same property in parent and child dt with name. How to avoid override of values without when condition.
Hi @sateeshp0869,
lData Transforms share the same name (e.g., SetDefaults). Pega climbs up the class hierarchy → executes the top parent Data Transform first. Then moves back down, applying each child class’s Data Transform. Each level can add or override values.
-
Execution happens in sequence:
-
Pega executes the parent (superclass) Data Transform.
-
Then it executes the child class Data Transform.
-
-
If both set values for the same property, the child value overrides the parent value (last one wins).
How to Avoid Overriding (without using
Whenconditions) -
Use Separate Properties for Parent & Child
- Instead of setting the same property, define parent-level default property and then map/merge to child when needed.
-
Use
Append and Map to(for Page Lists/Page Groups)- If you’re setting on collections, instead of overriding, append new values.