Pega - Decision Rules Interview Questions and Answers

Pega - Decision Rules Interview Questions and Answers

1.Differences between Decision table and Tree?

Decision Table
Decision Tree
.Logic used is If, else if, else if… Otherwise.Logic used is If, if, if , nested if… Otherwise
. Here the number of Properties for every logic is Fixed..Each logic can have different properties being used.
. We can use expression builder for properties, values and return results.. We cannot use expression builder for return results.
.We can all other decision rules using only functions pxEvaluateDecsionTable, pxEvaluateDecsionTree, ObtainValue().. We can call other decision rule by selecting the under configuration tab “Allow Selection of Call decision option”.
We have Evaluate all rows option availableWe don’t have evaluate all rows available.

2.How to return multiple results using Decision Table?
A.We can choose the options evaluate all rows under results tab of decision table.


3.How you decide whether to created decision table or Decision tree?
A.For all the condition if we have fixed properties then Decision table.
For each condition if we have different set of properties to be used, then decision tree.

4.How to call an activity for decision table?
A.Using below functions CallActivity(pagename, activity name, parampagename), pxExecuteActivity(pagename, activity name)


5.How to call decision table or tree from a DTF?
A.Using Fucntions pxEvaluateDecsionTable, pxEvaluateDecsionTree, ObtainValue().

6.How to do exception handling in case of Decision table? OR What is “AllowMissingProperties” in activity method, Property-Map-DecisionTable?
A.By the time this table is called, PC expects all the properties that are involved in the conditions of DCT, to be available on clipboard. Missing anyone of the properties from clipboard results into halting the program when the above option not selected. Thus Users may not be able to proceed forward.

If we select this option, missing properties will be ignored and conditions will be evaluated based only available properties.