LinkedIn
Copied!

Table of Contents

More about When Condition rules

Version:

Only available versions of this content are shown in the dropdown

You can compare the value of one property reference against a literal constant, or against the value of another property reference. If you define more than one comparison, you can combine the results with and, or, and not operations to determine the final true/false outcome.

Conditions in activity steps

Each activity step may reference none or several when condition rules, as preconditions for a method, or transitions between the just-completed method and the next step.

As a precondition, a condition rule determines whether the method in the activity step executes or skipped. Referenced in a transition, a condition determines what activity processing flows after completion of the current activity step.

Standard function

To execute a when condition rule in an expression or in the context of Java code, call the standard function callwhen() in the Pega-RULES Default library.

You can view the generated Java code of a rule by clicking Actions View Java . You can use this code to debug your application or to examine how rules are implemented.

Related Content

Did you find this content helpful?

Have a question? Get answers now.

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