Skip to main content

Product rule

Application components

Applications consist of rules, rulesets, application data, system data, and other objects such as database schemas. As an application moves toward production, the application and its components must migrate among Pega systems. For example, you migrate the application from a development environment to a testing environment, and then finally to a production system. In some cases, you may want to migrate only specific application components such as updated rulesets or data objects included in a patch release.

Consider the following scenario: If you move from one house to another house, you might create a manifest of household items that you want to move. You do not include things like cabinets, plumbing, or wiring, as these items are already in the house to which you are moving. You then load the items on the manifest list into a moving van. When the van reaches its destination, you take the items out of the van and unpack each item.

Like the manifest described in the previous example, you create a product rule that identifies the application components you want to move to a destination Pega Platform system. A product rule lists the rulesets, data, and other objects that make up an application. The product rule usually does not include standard rulesets and data because those components are built into all Pega Platform systems. A product rule is an instance of the Rule-Admin-Product class, also referred to as a RAP.

Note: You can find product rules in the Records Explorer > SysAdmin category.

You can access the Product Preview dialog from the Product rule to view a summary of application contents.

In the following image, click the icons to learn about the Product Preview dialog.

Application Packaging wizard

Pega Platform uses the product rule to create an archive file that is used to export and import the selected contents. Like loading the moving van, you put the contents of the product rule into an archive file, also called a RAP file, that is compressed using either ZIP or JAR compression. You copy the archive file to the destination system and import the contents of the file into the system.

The following video highlights the basics of application migration.

To avoid introducing errors when creating a product rule and generating a RAP file, Pega Platform provides a tool called the Application Packaging wizard that guides you through the creation of a product rule in a series of steps. The wizard identifies the items included at each step, which gives a developer the opportunity to identify missing components. For example, customized data instances that are associated with standard rulesets, like the Google API key, can be added manually. You can also modify the product rule from the rule form itself.

Availability of imported rules

If you import rules in a ruleset that users can already access, the rules may begin executing immediately. These rules may execute before all the rules in the same archive have been imported. Similarly, declarative rules begin executing immediately. This means that the declarative processes might fail if the elements or properties they reference have not yet been uploaded. This needs to be planned for when an archive is imported on a system with active users.

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

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

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice