Multiple choice technology

  1. Following example belongs to which Declarative Rule Type. ActualExpense("December") is never greater than BudgetExpense("December").

  1. a) Rule-Declare-Index

  2. b) Rule-Declare-Expressions

  3. c) Rule-Declare-OnChange

  4. d) Rule-Declare-Constrains

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Declarative Constraints enforce validation relationships between properties. In this case, the rule ensures ActualExpense cannot exceed BudgetExpense for any given period, maintaining data integrity and business rule compliance automatically.

AI explanation

To answer this question, you need to understand the different types of declarative rules in PegaRULES, a rules engine used by Pega Platform.

The given example states that "ActualExpense('December') is never greater than BudgetExpense('December')". This example represents a constraint that needs to be enforced. The correct answer is option D) Rule-Declare-Constraints.

Let's go through each option to understand why it is correct or incorrect:

Option A) Rule-Declare-Index - This option is incorrect because Rule-Declare-Index is used for creating index tables to optimize the retrieval of data.

Option B) Rule-Declare-Expressions - This option is incorrect because Rule-Declare-Expressions are used to define complex calculations and expressions involving properties and functions.

Option C) Rule-Declare-OnChange - This option is incorrect because Rule-Declare-OnChange is used to specify actions that should occur when a property value changes.

Option D) Rule-Declare-Constraints - This option is correct because Rule-Declare-Constraints are used to enforce business rules and constraints on property values.

The correct answer is option D) Rule-Declare-Constraints. This option is correct because the given example represents a constraint that needs to be enforced.