Skip to main content

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Processing records and data before and after import

Suggest edit Updated on March 6, 2020

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

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.
Did you find this content helpful? YesNo

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us