LinkedIn
Copied!

Table of Contents

Exploring rules in your application

Version:

Only available versions of this content are shown in the dropdown

To ensure that your application includes all the features that your business process requires, explore rules that define these features. By exploring rules before you define new elements of your app, you can also avoid duplicating resources, and as a result, save time and development costs.

  • Finding rules by type

    You can use the Records Explorer to find all instances of a specific class, or rule type. By using the Records Explorer instead of searching, you can quickly find a rule when you know its type but do not know its name.

  • Finding rules by class

    You can use the Application Explorer to find rules that share the same class. By using the Application Explorer instead of searching, you can quickly find rules that are in your application or inherited by your application, without having to know their names.

  • Finding rules by name

    To find sibling rules, which are rules with the same name (key parts) but different rulesets or versions, do the following.

  • Finding rules by dependency

    Save development time and find rules by dependency with the Referencing Rules tool. Instead of conducting a full-content search, you can quickly locate a rule in context by tracing the relationship between the rules in your application.

  • Rule versions review and comparison

    Inspecting and comparing rule versions helps you resolve merge conflicts, review and debug code, and audit changes that were made while the rule was checked out.

  • Comparing rules by system

    You can use the Rulebase Compare wizard to identify differences in the rules present on two Pega Platform systems. For example, you can use the tool to confirm the success of a product migration between systems, or to identify the changes needed to synchronize two systems.

  • Bookmarking a rule

    You can use favorites to bookmark a rule so that you can quickly find it later. You can create favorites that are visible to your operator exclusively, another operator, or all operators within a specified access group.

  • Searching for a rule

    Dev Studio provides full-text search for non-deprecated rules, data objects and the help system. You can search help system topics at any time. Searching for rules or data depends on system-maintained index files.

  • Reporting on rules

    You can report on rules of more than one type and rules that are checked out. For reporting purposes, searching all instances of the classes derived from the Rule- base class, or even all instances of the Rule-Service- class, can impact performance. To provide more efficient reporting, you can create report definitions that query the database view that corresponds to a particular class.

  • Viewing rule history

    You can view the saved history of a rule to see when it was changed and by whom. You can also compare the current version with a previous version or restore a previous version of a rule for testing purposes, or if the current version is faulty.

  • Viewing rule versions

    View rule versions by selecting Actions View versions . A dialog box appears and displays the versions of the rule, their availability, and their circumstance. You can click an item to open the rule form.

  • Viewing the generated Java of a rule

    After you save a rule form, you can view an approximation of the generated Java to be created by a rule instance by selecting Actions View Java .

  • Viewing the XML of a rule

    If you have the @baseclass.ToolbarFull privilege, you can view the XML document that comprises the form that displays a rule instance by selecting Actions View XML .

  • Replacing a string in rulesets

    Use the Search/Replace a String wizard to search for and replace a string wherever it appears in rules in the entire PegaRULES database.

  • Finding deprecated rules in sections

    Find sections that use deprecated rules by using an application upgrade utility. Once found, these legacy rules can be updated to newer rules.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.