Skip to main content


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

Editing a When rule in the legacy mode

Updated on January 14, 2022

Apply functions and more advanced logic in When rules by editing the conditions in the legacy authoring mode.

Before you begin: Enable the legacy authoring mode for the rule that you want to edit. For more information, see Creating a When rule.

By default, when you create and edit When rules, you use the condition builder view. For more information on how to define conditions, see Defining conditions for a When rule.

  1. In the navigation pane of Dev Studio, click RecordsDecisionWhen, and then open the rule that you want to edit.
  2. On the rule form, double-click the link below the When node.
  3. In the first field, enter a property, a literal constant, or a function call.
  4. In the second field, select a comparator.
  5. In the third column, provide a value that you want to compare with the value from the first field:
    • Enter the value.
    • Click Select values, and then select the value.
    For example: Status work is equal to Done
  6. Optional: To configure advanced conditions, press the Down arrow button, and then select a condition from the list.
  7. Click Submit.
  8. Optional: Develop the rule by clicking Actions, and then performing one of the following procedures:
    • To update the condition, click Edit.
    • To add another condition, click Insert condition.
    • To create a group of nested conditions, click Insert group.
    • To delete the expression node, click Delete.
  9. Click Save.
Result: The system displays the conditions and logical operators that you enter on the Advanced tab in the Condition array and the Logic String field.

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