Show all
Use the Rules Inspector
tool to:
- Learn the name of the top-level harness rule or HTML rule
(Rule-Obj-HTML rule type) that produced any
window or form you are viewing.
- Learn the names of section rules, flow action rules, paragraph rules
and HTML rules that the top-level rule
incorporates through the pega:include JSP tag, the HTML-based
rules referenced by these and so on.
- Learn the name of properties referenced in any of these rules.
- Identify properties displayed that are computed automatically by
Declare Expression rules.
- Find labels and other elements on harness, section, and flow
action rules marked for localization, for which field value
rules are defined.
- Start the Style Discovery tool, to identify and experiment with changes to the CSS styles that are applied to a part of a form.
Identifying these rules and other elements can be valuable as you update
harness, section, flow action and HTML rules to evolve the user
interface of your application.
To turn
on rules inspection
Four menu settings set or remove rules inspection. When
these menu items are set, a check mark appears before the
menu item. Select:
- Run > Rules Inspector > HTML Rules to
turn on marking of harness, section, and flow action rules
with an icon. The icon appears above the
visible presentation of the HTML in the rule. This menu
selection also marks HTML rules with an H
icon. The keyboard shortcut is
CTRL+ALT+Y
.
- Run > Rules Inspector > Property Rules
to turn on the marking of visible properties. A small red
P identifies each property
reference. The keyboard shortcut is
CTRL+ALT+X
.
- Run > Rules Inspector > Declarative
Rules to turn on the marking of properties computed
by Declare Expression rules. A small red D identifies such properties.
The keyboard shortcut is
CTRL+ALT+V
.
- Run > Rules Inspector > Field Value
Rules to turn on the marking of portal, harness,
section, and flow action elements that are marked for
localization and supported by field value rules
(Rule-Obj-FieldValue rule types). This option
is most useful when testing a localized application. See
Localizing with the
Field Values Inspector. The keyboard
shortcut is
CTRL+ALT+w
.
- Run > Rules Inspector > Styles to turn on the Style Inspector, allowing you to determine which CSS styles apply to elements of a form, and experiment with style changes.
Working
while rules inspection is on
Rules Inspector settings affect all work object forms presented after
you turn on the settings.
To see the enhanced display for a form that's already
displayed:
- Right-click anywhere in the form.
- Click the Refresh icon ( or ) on your portal. (If this
icon isn't visible, save your work and choose Refresh
from the right-click context menu presented by Internet
Explorer.)
Understanding the H, P, D, and A icons
Interacting with the H, D, P and A results
You can use work object forms while rules inspection is
enabled. In addition, you can identify the rules that make up
a work object form:
- Place and hold your mouse pointer over the, H, D, or
P to display in ToolTip text,
the rule type and the full name of the rule.
- Click an H, P, or
mark to open the referenced
section, HTML, fragment, or property rule.
- Click a D mark to view the dependency
network for that property. The network
shows the current values of other properties that
contribute to the current property computation. To
understand the computation, you can alter selected input
values to see the effect on the computation. Your changes
do not alter the value on the form.
- Click any field value icon (,,,
or) to access the Field Value Manager, which
lets you review, add or update a language-specific field
value to the current language-specific RuleSet. See
Localizing forms
and reports with the Field Value Inspector.
Working with the Style Discovery tool
To turn
off rules inspection
Using this facility slows your session; enable it only
when needed.
To turn off rules inspection, select each Run >
Rules Inspector menu item again to remove the check
marks.
Notes
- Some standard rules have Availability
set to
Final
(and so cannot be overridden by
your application). These rules are not marked when rules
inspection is enabled.
- A few properties and HTML rules marked as
"internal-only" are not marked when rules
inspection is enabled.
Tools, accelerators, and wizards