More about When Condition rules |
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.
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.
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.
When you save a when condition rule, the system converts your tests and logic to Java source code. As a learning or debugging aid, you can review this Java code.
Click the Show Java toolbar button () to see the system-generated Java code that implements the logic of the when condition rule. The window presents a read-only preview of the Java that implements this rule instance. This Java code is not identical to the Java that executes at runtime, which includes Java code inlined from other rule instances and reflects rules in the requestor's RuleSet list.
precondition, transition |