"pyDefault" data transform in your case type class will Call superclass data transform. You can refer the "pyDefault" data transform of Work- class to see the values of OOTB properties it initializes while creating a case instance.
"pySetFieldDefaults" data transform can be Utilized in form configuration for fields that are generated for a case type.
Data transform use pySetFieldDefaults to initialize any page properties you create manually outside of the Case Designer.
Because the by default data transform is always invoked when a case is created, by default includes the Apply Data Transform action. This ensures that pySetFieldDefaults is also invoked when a case is created. This action does not use Relation or Source settings.
Use the superclass feature by creating a data transform with the same name at each level and selecting the Call superclass data transform option. If properties are specified in both the super and child classes, the data transform in the subclass overwrites anything already set by the data transform in the superclass.
Posted: 3 years ago
Posted: 17 Jun 2020 7:36 EDT
Praveen Palagani (palas3)
Principal Technical Solutions Engineer
Pega Platform provides a pair of data transforms (pyDefault and pySetFieldDefaults) that are used to automatically set default property values and page properties when you create a case.
The first time you create a view for your case type in the Case Designer, Pega Platform creates these data transforms. You can also create these data transforms manually. When a new case is created, the pyDefault data transform is invoked by the process. pyDefault then invokes the pySetFieldDefaults data transform.
Similar to pyDefault, you can use the pySetFieldDefaults data transform to set default values for properties. In addition, you use pySetFieldDefaults to automatically initialize page (field group) and page list (field group list) properties. When pyDefault invokes pySetFieldDefaults, properties are immediately available to the case when it is created.
Because the pyDefault data transform is always invoked when a case is created, pyDefault includes the Apply Data Transform action. This ensures that pySetFieldDefaults is also invoked when a case is created. This action does not use Relation or Source settings.