Beginning with Pega 7.2.2, you can perform setup actions before the data import process, such as defining a new table or data record, and cleanup actions after the data import process, such as closing an open stream or transaction. For example, you can create a new segment to add the records that you want to import for your Employee data type before the system imports the data. Additionally, you can perform actions on the data records such as copying them before they are imported. After the data is imported, you can close the segment.
Processing data before and after import
- To perform setup actions before the system imports data, override the pyPreImportBatchProcessing activity.
- To perform cleanup actions after the system imports data, override the the pyPostImportBatchProcessing activity. The Pega 7 Platform calls these activities from the pzImportRecords activity, which processes the data records that you upload, based on the import purpose.
Calling the pyPreImportBatchProcessing and pyPostImportBatchProcessing activities from the pzImportRecords activity
Record processing before import
You can perform actions on a data record before you import it. For example, if you are importing data for your Employee data type, you can validate each record and, if the record is valid, copy the record to another data type before the record import.
- To process records before import, override the pyPreProcessRecordOnImport activity.