When Condition rules
A when condition rule evaluates a Boolean logical statement involving comparisons among values of properties, to return true or false.
The following tabs are available on this form:
Rules of many other rule types can reference when condition rules. For example, you can reference when condition rules in activities, flows, and through the <pega:when > JSP tag in HTM and XML rules.
Use the Application Explorer to access when condition rules that apply to the work types in your application. Use the Records Explorer to list all when condition rules available to you.
Many when condition rules can be conveniently expressed as one or more Boolean expressions (comparisons or function calls) ANDed or ORed together. Use the Conditions tab to enter or update such rules. Other when condition rules require more complex logic to combine the Boolean expressions. Use the Advanced tab to enter or update those rules.
After you complete initial development and testing, you can delegate selected rules to line managers or other non-developers. Consider which business changes might require rule updates and if delegation to a user or group of users is appropriate.
For more details, see Delegating a rule or data type.
When condition rules are part of the Decision category. A when condition rule is an instance of the Rule-Obj-When rule type.
- Creating a When rule
Evaluate a Boolean logical statement that involves comparisons among values of properties, to return true or false, by creating a When rule.
- Access When form — Completing the Conditions tab
Use the Conditions tab to enter or revise an Access When condition rule that can be expressed as a single Boolean expression, or the conjunction ( AND or OR ) of one or more Boolean expressions.
- Editing a When rule in the legacy mode
Apply functions and more advanced logic in When rules by editing the conditions in the legacy authoring mode.
- Defining security information for an operator
Use the Security tab to manage operator authentication, passwords, and license type, to allow rule check out, and to enable and disable the operator.
- Completing the Pages & Classes tab
Identify what is known about the class of each page that is referenced on other tabs. See How to Complete a Pages & Classes tab for basic instructions.
- Viewing generated Java code of Access When rules
ArticleUnit testing a when rule