PegaGang
  • Home
  • Blog
    • Us
  • Contact US

import and export ZIP archives from a command line in Pega PRPC 7

9/25/2016

Comments

 
This article describes how to call Java classes in the Process Commander application libraries to programmatically export and import Process Commander class instances from and to Process Commander databases.
  • The Export command writes the specified class instances from a source PegaRULES database to a ZIP file in a binary format or as XML.
  • The Import command takes the ZIP file as input and writes the exported class instances to a target system PegaRULES database.You can specify the class instances by RuleSet name and version, by class name with or without descendants, or bypzInsKey key values.

Note : The source Process Commander system must be V5.2 or later, and the destination Process Commander system must have the same or a later version than the source system.
The following diagram shows a conceptual view of the components involved in the process:
Picture
n this diagram, the two Process Commander systems and a third computer executing the script are distinct. In practice, however, this operation can involve one, two, or three computers, or more if each Process Commander system uses a separate computer to host its PegaRULES database. The operation always involves two prconfig.xml files, one identifying the source PegaRULES database (containing the rules to be migrated), and the second identifying the target PegaRULES database.
Note that the Export and Import calls operate directly on the Process Commander databases, independent of the Process Commander applications. The transfer can even occur when the Process Commander application and its server are not in operation; however, the database servers must be running.
To complete this process:
  1. Configure a Java JVM environment with access to the Process Commander engine JAR files and the appropriate database driver files.
  2. Copy or create prconfig.xml files that specify the location and database access information for the source and target databases.
  3. Call the Export method specifying the RuleSets or classes you want to move, and the ZIP file name to use.The Export method creates a Process Commander import archive file with the specified components from the source database.
  4. Call the Import method specifying the name of the ZIP file and other database options.The Import method loads the database components in the import archive file into the target database.
Details on these steps are given below.
An example of an Apache Ant script calling these classes is provided below, but you could apply the same method to any scripting language. For example, you can create a Unix shell script to migrate a RuleSet version OurFinance:02-05-15 from a development system (labelled SOURCE in the diagram) to a unit testing system (labelled Target).
Important: This functionality does not duplicate the Product wizard. If you are moving entire Rule-Applications you should use the Import and Export Archive (formerly RulesMove) facility. When calling the Export method, you must specify exactly which RuleSets and/or classes you want to move. Before using these methods, be sure you understand RuleSets and RuleSet archives. 
Comments

    Categories

    All
    Case Management
    Case Type
    Concepts And Terms
    Flows
    Integration
    New In Pega 7.2
    Pega 7 New Features
    Pega Mobile
    Pega RPA
    RDA
    RPA
    User Interface

    Archives

    October 2020
    March 2018
    January 2018
    November 2017
    June 2017
    March 2017
    December 2016
    November 2016
    October 2016
    September 2016

    Categories

    All
    Case Management
    Case Type
    Concepts And Terms
    Flows
    Integration
    New In Pega 7.2
    Pega 7 New Features
    Pega Mobile
    Pega RPA
    RDA
    RPA
    User Interface

    RSS Feed

Services

Training
​Job Support
Hire our Experts

Courses Offering

Pega System Architect ( CSA ) 8.4
Pega Senior System Architect ( CSSA ) 8.4
Pega Lead System Architect ( CLSA ) 8.4
Pega Business Architect ( PCBA / CPBA 8.4
Pega Decision Consultant ( CPDC ) 8.4
Pega Marketing Consultant ( CPMC ) 8.4
Pega Data Scientist ( CPDS )  8.4
Pega UI Specialist ( PCUIS )
Pega Testing 
​Pega Administation




Company

About PegaGang
What is Pega 7
​
Customers Reviews

Support

Contact
FAQ
Terms of Use

Address

​India 
Nizampet Rd, Jai Bharat Nagar, Nagarjuna Homes, Kukatpally, Hyderabad, Telangana 500090
​
USA
Greater New York City Area
New York -14624
​United States
Picture
© Copyright 2011 - 2020. All Rights Reserved.
​
PegaGang all rights reserved. All PegaGang training materials is proprietary content of PegaGang. We Dont Use / Distrubute /  provide / Install Pegasystems Materials and Softwares. PegaGang is not an affiliate of Pegasystems. PEGA is a trademark of Pegasystems. Pegasystems is not the publisher of the training material and is not responsible for it in any aspect.
  • Home
  • Blog
    • Us
  • Contact US