Using the Application Explorer |
Use the Application Explorer to obtain quick access to rules in a single application, organized by work type, category, and rule type. This explorer is most useful in development settings where a majority of rules have an Applies To key part that matches a work type.
In contrast to the Class Explorer and Rules Explorer, the Application Explorer shows only rules that are associated with the RuleSets that correspond to your current application — the application name that appears in the header of the Designer Studio window. This smaller selection of rules is easier to explore and navigate.
The exact set of rules that appear depend on your preference settings and selected work pool (as defined more precisely below).
Starting the Application Explorer
The Application Explorer is available to all developer roles, and in the Business Analyst portal. To show the rules in your application:
Through preferences, you can control:
The tree contains nodes that correspond to the category of rules they contain. Each node contains several types of rules, and then individual instances of each rule type in the deepest level. Each node only appears if it is not empty.
Rule Categories:
Application Definition | Data Model | |
Decision | Integration | |
Process | Reports | |
SysAdmin | Technical | |
User Interface |
Within each rule type node, the following icons represent individual rules.
When you click the icon in the Application Explorer, the resulting behavior is equivalent to clicking the Run toolbar button () in that rule's rule form. For example, clicking the icon next to a starter flow starts the flow in the same way as if you had opened that flow rule and clicked the toolbar Run () icon.
For properties with a mode other than Single Value
, an icon indicates the mode. The following modes are most common:
Value List
.Value Group
.Page
mode property. Click the plus icon to expand the subtree of embedded properties. Click the minus sign to collapse the subtree.Page List
property. Click the plus icon to expand the subtree of embedded properties, or the minus sign to collapse the subtree.Page Group
property. Click the plus icon to expand the subtree of embedded properties, or the minus sign to collapse the subtree.Interacting with the tree structure
When you open or operate on a rule presented in the Application Explorer, PRPC uses rule resolution to find the highest rule on your RuleSet list that you can execute. However, the tree structure in the Application Explorer presents all versions of rules in a RuleSet, not those you can execute. In unusual situations, the Application Explorer display may include a rule that you cannot execute.
Interacting with the Visio flow editor
When working in Visio you can add new flow shapes by dragging rule instances from the Application Explorer and dropping them onto the diagram. Click the icon to select the rule.
You can drag and drop rules of these types onto Visio diagrams. For an example, see PDN article 26016 How to drag rules from the Application Explorer into shapes on a Visio flow diagram.
Drag-and-drop operations are not available for flows edited with Process Modeler.
Rule |
Flow Shape |
||||||||||||||||||||||
Flow |
Flow Only screen flow instances can be dropped onto a screen flow diagram. See: |
||||||||||||||||||||||
Flow action |
Connector (flow action) See Editing in Visio — Connectors and flow actions Not used in screen flows. |
||||||||||||||||||||||
Map value |
Decision |
||||||||||||||||||||||
Decision tree |
Decision |
||||||||||||||||||||||
Decision table |
Decision |
||||||||||||||||||||||
Service level |
No shape. Drop the instance on an Assignment shape to populate the Service Level field in the Assignment Properties panel. See About Service Level rules. Not used in screen flows. |
||||||||||||||||||||||
Activity |
Shapes are determined by activity type as specified on the Security tab on the rule form. The types and their respective shapes are listed below.
|
You can (although not recommended) use an activity in a Utility shape that is not a Utility
type (see table above). Doing so displays a warning message in the Utility Properties panel. The shape does not affect flow processing. Here is an example of a Validate
activity:
You can drop some types of rule instances on a connector and automatically re-attach and create new arrows connecting the new shape to existing shapes. See Flow form — Editing in Visio — Connectors and flow actions.
Select a text value and right-click to access a context menu.
Depending on the type of the rule you select and other factors, a context menu can include the following menu options:
Menu item |
Result |
Checkout |
Checks out the selected rule to your personal RuleSet. Available in the menu if the rule's RuleSet uses check out and you have the privilege to check out rules. See check out. |
Clone a Class Group |
Starts a landing page tab to copy the classes in a class group. See Data Model category — Classes and Properties landing page. |
Collapse |
Collapses the subtree below the selected node. |
Delegate |
Delegates the rule; this action is equivalent to clicking the Favorites toolbar button (). |
Delete |
Deletes the rule. Available only for rules in top-level classes that belong to unlocked RuleSet versions. (If the rule is checked out to you, the checked-out rule opens; the system asks you to confirm the deletion.) |
Delete checkout |
Deletes the copy of the checked-out rule in your personal RuleSet. Available in the menu if the rule is checked out to you. See check out. |
Define Expression |
For properties where the expression icon () is not present, creates the Declare Expression rule associated with this property at the current clipboard context. |
Define Properties |
Starts the Define Properties wizard using the current work type or class as an input. See About the Define Properties wizard. |
Definition |
Opens the class rule form. This menu item appears only when the selected item is a class. |
Expand |
Expands a |
Add to Favorites |
Opens a form allowing you to add the selected rule to your set of favorites. See favorites. |
Filter by RuleSet |
Opens a form allowing you to select RuleSets from those on your RuleSet list. After you click Submit, the tree substructure for the current class is refreshed to show only those rules that belong to the selected RuleSets. This change remains in force until you use this menu choice again for this class, or log off. A check mark by the menu item indicates that filtering is in force for the selected class. Filtering affects only the Application Explorer display of the selected class; it does not affect the display of subclasses that are derived from this class. Press the The Filter by RuleSet menu item appears only when the selected item is a class. |
Inheritance |
Starts the Class Inheritance display for the class in the Applies To key part of the selected rule. See About the Class Inheritance display. |
New > category > type |
Create a new rule, using the selected class as the Applies To key part. This menu item appears only when the selected item is a class. |
Optimize for Reporting |
Starts the Property Optimization tool, which lets you expose a scalar property as a database column (on development systems only). See About the Property Optimization tool. |
Open |
Opens the form for the selected item. |
Open Expression |
For properties where the expression icon () is present, opens the Declare Expression rule associated with this property and context. |
Preview |
Presents a preview of the runtime appearance of the rule. This action is equivalent to clicking the Preview toolbar button (). |
Related Rules |
Presents a second-level menu identifying other rules that related to this one — for example, circumstance-qualified, time-qualified, or checked out. Choose an item in the Related Rules submenu to open it. See Working with the Related Rules menu. |
Rename Class |
Starts a wizard to rename the rules that apply to a class. See About the Rename a Class wizard. (Appears only for class rules.) |
Save As |
Opens the Save As dialog box, so you can copy the rule. |
Show Calls |
For activities, displays the interactive Show Calls tree, which identifies called activities. See Activity form — Completing the Steps tab — Show Calls button. |
Structure |
Displays the Class Structure diagram that includes this class. See About the Class Structure viewer. |
Switch Class |
Appears for classes only. Makes the selected class the base class for the Application Explorer display. |
Refactor |
Starts the Refactor Rules tool, to allow you to copy rules with a specific Applies To class (optionally including descendent classes) from one RuleSet into another RuleSet. See About the Refactor Rules tool. This menu item appears only when the selected item is a class. |
Refresh RuleSet |
Updates the Application Explorer display to reflect rules recently created (or renamed or deleted) by other developers in the RuleSet that contains the selected rule. (Rules you create, rename, or delete are always visible.) |
Refresh All |
Updates the Application Explorer display to reflect rules recently created (or renamed or deleted) by other developers. (Rules you create, rename, or delete are always visible.) |
Run |
Opens the rule and starts the unit test of the rule. This action is equivalent to clicking the Run toolbar button (). |
View > Applicable Rules |
Produce a report, in a separate window, of all rules that have the selected class as the Applies To key part, summarized by rule type. This menu item appears only when the selected item is a class. |
View > category > Type |
List rules of a specific rule type that have the selected class as the Applies To key part. This menu item appears only when the selected item is a class. |
View > INSTANCES > View |
Lists instances of the class (and subclasses). This menu item appears only when the selected item is a class. |
View > INSTANCES > Pop-Up |
Lists instances of the class (and subclasses), in a separate window. This menu item appears only when the selected item is a class. |
When you open or operate on a rule presented in the Application Explorer, PRPC uses rule resolution to find the highest rule on your RuleSet list that you can execute. However, the tree structure in the Application Explorer presents all versions of rules in a RuleSet, not those you can execute. In unusual situations, the Application Explorer display can include a rule that you cannot execute.
You can also choose New from a right-click context menu at the category level:
Understanding when rules appear in the App Explorer tree
Which rules the Application Explorer presents depends on your current application, a work pool, and preferences. In some situations, the Application Explorer display may include rules that you do not consider part of the application, or may exclude others you expect.
The Application Explorer display filters by RuleSet but not by version. In some cases, the display can include rules in versions higher than the highest version to which you have access. It can also include blocked rules and rules with major versions lower than the current major version. You may not be able to open such rules or execute them.
Operation of the Application Explorer uses information in a view of the PegaRULES database named pr4_rule_summary
, corresponding to the class Data-Rule-Summary.
In unusual cases, the developer can select a work pool that does not match (belong to) the current application. In this case, the Application Explorer includes all rules from the RuleSets that use the work pool's RuleSet Version as a pre-requisite.