Pega - RULE CIRCUMSTANCE - Interview Q&A

Pega Rule Circumstance

  1. What is Circumstance? How it works?

circumstance is an optional qualification available for all rules. Using a circumstance allows our application to support multiple variants of a rule. For example, variations of an ordinary rule instance can be created for different customer status levels or for different geographic locations.

circumstance-qualified rule instance (often referred to as a “circumstanced rule”) is always based upon an unqualified rule instance (base rule).

We can circumstance a base rule with a single property and its value, or with multiple properties and their values (called multivariate circumstancing).

The circumstanced rule executed during rule resolution if the value of the circumstance property on the rule matches that property’s value on the clipboard at runtime.

 2.     How do we create the circumstance-qualified rule?

To create a circumstance-qualified rule, first, define an unqualified or base rule instance (with the Circumstance values left blank).

Then use the toolbar Save As button to create a second rule qualified by a circumstance.

If the original rule has an Applies To class as an initial key part, the circumstance-qualified rule must have the same Applies To class or a subclass derived from that class.

3.     Explain about single circumstance and multivariate circumstancing?

If we use a single circumstance property, we define the property name and its value directly in the Save As form.

If we use multivariate circumstancing, two rules in the Save As form:

Circumstance Templates (Rule-Circumstance-Template rule type)

Circumstance Definitions (Rule-Circumstance-Definition rule type)

4.     Explain about circumstance template rule?

Circumstance template rule used to identify properties for multivariate circumstanced rules.

5.     Explain about Circumstance definition rules?

Circumstance definition rules contain a table of values for the properties in circumstance template rules.




No comments:

Post a Comment