Use the prpcServiceUtils command-line tool to import an archive file containing an application, product, branch, or ruleset to one or multiple target systems.
You must have a running Pega 7 Platform instance to use the prpcServiceUtils tool.Use the REST service URL to configure one or multiple targets to receive an imported archive file. This feature supports both synchronous and asynchronous imports.
Synchronous imports are completely automatic.
Asynchronous imports return a job ID that you can use to query the job status through another service.
You must have permissions to perform database changes and the archive file to import must be located on the client system. You can import multiple archive files into a system sequentially and you can use the expose feature to automate the provisioning of multiple applications.
To import an application, follow these steps:
Configure the import properties:
Property name | Action |
---|---|
import.archive.path | Enter the relative path to the archive from the \utils\ folder or the full path to the archive. If the path is a folder, the tool processes all archive files in that folder. |
import.mode |
Enter the import mode:
|
import.existingInstances |
Specify how the import action handles existing instances:
|
import.nofailonerror | Set to true to skip instances that fail to import and continue after an import failure. Set to false to stop the import if any import action fails. |
import.commitRate | Specify the number of data instances processed with each database commit to balance memory usage and performance. The default of 100 is sufficient for most environments. |
import.compileLibraries | Specify whether to compile libraries after import. Default is true. |
import.allowImportWithMissingDependencies | Specify whether to allow the import to continue even if the archive is dependent on missing products. Default is false. |
import.enable.defaultcontext | Specify whether to allow triggers for the Pega 7 Platform to run while performing command-line imports. Default is false. To allow triggers to run during imports, uncomment this property and set to true. |
import.codesetName | Optional: Enter the name of the code set to receive the Java .class files. |
import.codesetVersion | Optional: Enter the code set version. |
import.async | Specify whether to run the process in asynchronous mode and queue the jobs. Set to true (default) to return a job ID for each operation that you can use later to check the status. |
import.trackData | Specify whether to import only data, that is, anything that is not in PegaRULES. When set to true, data, including DDL changes, is imported and tracked. Use the manage tracked data tool to commit or roll back tracked data. |
Run the prpcServiceUtils.bat or prpcServiceUtils.sh script. For example:
prpcServiceUtils.bat import