Conditional execution
Business processes rarely follow a simple, straightforward path to resolution, which is why solution design must account for variations and exceptions that can occur throughout the Case Lifecycle. For example, the path of a Case might depend on the evaluation of a condition, such as the value of a credit score to determine the interest rate on a loan, or a simple decision by the user, such as enrolling in a frequent-shopper program.
Having the flexibility to follow alternate paths in a workflow is the cornerstone of business process management (BPM). When designing a business process, you must account for the different paths a Case may take based on the evaluation of one or more conditions.
In this topic, you examine Pega's feature for conditional execution, the When Condition Rule.
The When Condition Rule
A When Condition Rule is a type of business Rule that evaluates a Boolean logic statement that involves comparisons among field values, to return true or false. When Condition Rules can be configured to evaluate a single field or several fields. For example, a When Condition Rule returns True if a job applicant has more than ten years of experience and is fluent in French.
Each When Condition Rule consists of three elements:
- An input value to compare at run time, for example, the value of a field that a user completes.
- A comparator, for example is greater than or is equal to.
- A value to compare against the input value from the condition. This value can be a constant that you enter or a reference to another field.
Implementing When Condition Rules
When Condition Rules can be implemented throughout an application. For example. When Condition Rules are used to determine:
- When a Stage is skipped
- When a Process is skipped
- Which Steps in a Process are executed
A When Condition Rule can be created for use within the context of a single Case Type or can be created for reuse across multiple Case Types within an application. Creating and grouping When Rules throughout your application allows you to create sophisticated application logic that supports even the most complex of business workflows.
Check your knowledge with the following interaction:
This Topic is available in the following Module:
Quer nos ajudar a melhorar esse conteúdo?