You can import archive files that contain an application, product, branch, or ruleset to one or multiple target systems by submitting a request to an active instance of Pega Platform from a web service.
Use the REST service URL to configure one or multiple targets to receive an imported archive file.
To import an application, follow these steps:
If you are importing an application with schema changes and a separate DB-Admin-DB-Name and you are using IBM DB2 for z/OS, configure the import parameters before you import the application, or the import will fail. For more information about configuring the import parameters, see IBM DB2 for z/OS: Preparing to import an application with schema changes and a separate DB-Admin-DB-Name. For more information about your application, see your database administrator.
Property name | Value |
---|---|
pega.rest.server.url
|
The URL for the REST service, specified in the following format:
For example:
Include the tenant hash only for multitenant systems. |
pega.rest.username
|
The operator name on the target system with access to REST services. |
pega.rest.password
|
The password of the specified operator. |
pega.rest.proxy.host
|
Optional: The host name of the REST proxy server. Do not use localhost as the host name. |
pega.rest.proxy.port
|
Optional: The port for the REST proxy server. |
pega.rest.proxy.username
|
Optional: The operator name on the REST proxy server with import and export access. |
pega.rest.proxy.password
|
Optional: The password of the REST proxy operator. |
pega.rest.proxy.domain
|
Optional: The domain of the REST proxy server. |
pega.rest.proxy.workstation
|
Optional: The workstation ID for the REST proxy server. |
pega.rest.response.type
|
The REST response type, either xml or json . The default value is json . Rollback, restore point, and update access group operations support only json . |
user.temp.dir
|
Optional: Enter the full path to the temporary directory. Leave this blank to use the default temporary directory. For more information about temporary directories, see Temporary files and temporary files directories. |
Property name | Value |
---|---|
import.importFromRepository
|
Indicates whether to import from a repository. The default is false , which imports from a file system. To import from a repository, set this to true . |
import.archive.path
|
When importing from a file system, 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.repositoryName
|
When importing from a repository, the name of the repository. The repository name is case sensitive. |
import.artifactType
|
When importing from a repository, the artifact type you are importing. The supported types are: |
import.archivePath
|
When importing from a repository, the full path to the archive file. The archive path is case sensitive, for example: |
import.mode
|
The import mode:
|
import.existingInstances
|
How the import action handles existing instances:
|
import.nofailonerror
|
|
import.commitRate
|
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
|
true or false , specifying whether to compile libraries after import. The default is true . |
import.allowImportWithMissingDependencies
|
true or false , specifying whether to allow the import to continue even if the archive is dependent on missing products. The default is false . |
import.codesetName
|
Optional: The name of the code set to receive the Java .class files. |
import.codesetVersion
|
Optional: The code set version. |
import.bypassSchema
|
Optional: Specify whether to apply database schema changes during the import. The default is false . If you have already applied the schema changes manually, set this to true .
|
import.async
|
Specifies whether to run the process in asynchronous mode or synchronous mode. The default, |
Run the prpcServiceUtils.bat script or the prpcServiceUtils.sh script with the import option, for example:
prpcServiceUtils.bat import
prpcServiceUtils script argument | Value |
---|---|
artifactsDir
|
The full path to the output file location, for those functions that generate output. The default is the /scripts/utils/logs directory. |
connPropFile
|
The full path to the serviceConnection.properties file that includes information for multiple targets. |
poolSize
|
The thread pool size. The default is 5. |
requestTimeOut
|
The number of seconds the system waits for a response before failing with a time-out error. The default is 300 seconds. |
jobIdFile
|
The path to the job IDs file that is generated by the asynchronous operation. |
propFile
|
The property file name, to override the default prpcServiceUtils.properties file. |