Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Creating a When rule

Updated on April 5, 2022

Evaluate a Boolean logical statement that involves comparisons among values of properties, to return true or false, by creating a When rule.

For example, you can create a When rule to prompt a user to enter a delivery address only when the user specifies that the delivery address varies from the address of residence.
  1. In the navigation pane of Dev Studio, click RecordsDecisionWhen.
  2. On the When tab, click Create.
  3. In the Label field, enter a description of the When rule.
    For example: IsTaskCompleted
  4. Optional: To enter a when expression that evaluates whether a value is true or false, click Show additional options, and then enter the expression.
    For example: .BalanceRemaining > 0.0
  5. Optional: To enable editing the rule in the legacy mode, click Show additional options, and then select the Use legacy authoring mode check box.
    By default, you edit conditions in the condition builder. For more information, see Defining conditions for a When rule.
  6. In the Context section, select an application to which the rule applies.
  7. In the Apply to field, select a class to which the rule applies.
  8. In the Add to ruleset field, select a ruleset for the rule.
  9. Optional: To enable traceability of the rule, in the Current work item section, enter the work item to associate with the rule, for example, a bug ID.
  10. Click Create and close.

Have a question? Get answers now.

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

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.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us