The purpose of a data transform is to manipulate data in an application.
Data Transform helps to :
- initialize the data automatically
- Manipulate data
- Copy data
Pega creates two data transforms automatically:
- pydefault
- pysetFieldsDefault
pyDefault Data Transfrom will be called automatically when we run the case.
it is the first rule that gets called when we runs the case.
we know that pega follows a class hierachy. There are DT available in any of the parent classess inside the class hierarchy
Whether a child class can make use of parent class DT ? YES
how it can be used ? only if the Child DT calls the super class DT by using the option
Call superclass Data Transform
To exchange data between parent case and child case , we need to use _______ concept
ans: Data Propagation
Data Propagation is achieved using Data Transform in Dev Studio.
Methods:
- Set : Set the value.
- When conditions
- Remove: The Remove action deletes the specified target and any associated values from the clipboard. (eg: result will not be shown if we select otherthan Add)
- Otherwise when is “Else if” and otherwise is “else”.
- Update Page: Intialises the page. Also Updates the page. Use “With values from” as a source page. EG: Billingaddress (with values from) Personal Address and set the values. Colours data from one page property to another page property even if it's of different class.
- Append and Map to: Appends the properties of the page list. You can have control on individual properties. (Eg: TO-DO list)
- Append to: Adds the page list. [New Page, Existing Page, Current Source Page, Each Page In]
- For Each Page in: Loop in the page.