Skip to main content
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded. Click here to continue your progress in the latest version.

Conditional execution of processes and stages

Conditional execution

You can define conditions that control whether a process or stage runs in a case. A condition consists of a field, comparator, and value. Processes and stages are either executed or skipped if the case run-time values match the conditional logic defined.

Configure condition dialog for a process or stage

For example, an automobile accident case contains a process to open a personal injury claim if there is an injured party in the accident. However, if the car received damage while parked and unattended, the personal injury process can be skipped. The File auto accident claim process always runs, which is the default setting for processes. The File personal injury claim process is configured with a condition: Was a party injured is equal to Yes. As a result, the File personal injury claim runs only when there is a personal injury associated with the accident claim. Otherwise, the process is skipped.

Automobile accident case that allows for conditional processing. The File personal injury claim process only runs if there is a personal injury.

Skipping a process or stage

Skipping a stage

By default, a stage never skips unless a condition is present.

Properties panel of a stage shows that stages are never skipped by default.

Skipping a process

By default, a process always starts unless a condition is present.

Properties panel of a process shows that processes always start by default.

Building conditions

You can add more than one condition to a stage or process. For example, in the automobile accident case, the personal injury process initially runs based on a single condition: Was a party injured is equal to Yes. You decide that the personal injury process should run based on two conditions: Was a party injured is equal to Yes and Expense total is greater than USD50. The File personal injury claim process is configured only to run when Was a party injured is Yes, meaning there is a personal injury associated with the accident claim, and the Expense total is greater than USD50. Otherwise, the process is skipped.

auto-accident-conditional-processing-two-conditions

Check your knowledge with the following interaction


This Topic is available in the following Module:

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice