Pre-import and post-import collections

Add steps to the pre-import and post-import collections to take specific actions based on archive metadata. Pre-import steps run before every archive import attempt. Post-import steps run after every successful archive import.

For example, you can configure a pre-import step to automatically verify that an archive meets certain criteria before you import the archive. If the archive does not meet the criteria, the system does not import the archive.

The following collections contain ordered lists of steps:

  • The pre-import collection is pyPreImportCollection.
  • The post-import collection is pyPostImportCollection.

The metadata associated with the steps is stored on the following pages:

  • The metadata properties used for pre-import steps are included in pxArchiveMetadataPage.
  • The metadata properties returned by post-import steps are included in pxImportResultPage.

The extension point for both the pre-import and post-import collections is the PegaAccel-Management-Import class. The collection rules have access to the metadata of the incoming archive through the pxArchiveMetadataPage.

The collections can interact with the incoming archive metadata that is created when the archive is created. This metadata includes dependency lists (hotfixes, applications, and so on). All of the rules executed by the pre-import and post-import processing must exist on the server prior to importing the archive.