0% found this document useful (0 votes)
739 views11 pages

Decision Rules - Pega System

Pega system learning material for beginner

Uploaded by

Sukumar Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
739 views11 pages

Decision Rules - Pega System

Pega system learning material for beginner

Uploaded by

Sukumar Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

07_PegaTraining_De

cision
Agenda
 Definition

 Decision Rule Types

 When Condition Rules

 Decision Tree Rule

 Decision Table Rule

 Map Value Rule

 Which Decision To Use At What Point Of Time?


Definition
 Decision Rules :

– Decision Rules define computations and comparisons that may Cause


processing to continue along one path or another

 Decision Rules are categorized in to:

 When Condition Rule


 Decision Tree Rules
 Decision Table Rules
 Map Value Rules
When Condition Rules

 When Condition Rules


– They are listed in Decision Rule category.
– It is an instance of the Rule-Obj-When rule type
Definition :
– A when condition rule evaluates a Boolean logical statement involving
comparisons among values of properties, to return true or false.

Confidential | Copyright ©
Larsen & Toubro Infotech Ltd.
When Condition Rules…
 It can also be used for more complex evaluations :
– If used to build the complex conditions, the Conditions tab can no longer be
used to edit this When condition, instead we can use Advanced Tab.

 Allows logic statements :


– Specify logic that will be used to return a result of True.
Decision Tree Rule

 Decision Tree Rule


– They are listed in Decision Rule category.
– It is an instance of the Rule-Declare-Decision Tree type.
Definition :
– Use a decision tree rule to record if..then logic that calculates a value in a
simple-to-understand format based on rows of property values, computations,
and comparisons.
Decision Tree Rule…
 Decision Tree can be referred from three other rules

– From decision shape of flow rule.


– In an activity you can evaluate the decision tree using Property-Map-Decision
Tree. By doing so, we can set a property value with the return value of the
decision table.
– Decision tree can be referred from Rule-Declare-Expression.
Decision Table Rule
 Decision Table Rule
– They are listed in Decision Rule category.
– It is an instance of the Rule-Declare-DecisionTable type.
Definition :
– Use a decision table to derive a value that has one of a few possible
outcomes, where each outcome can be detected by a test condition. A
decision table rule lists two or more rows, each containing test conditions and
a result.
Map Value Rule
 Map Value Rule
– They are listed in Decision Rule category.
– It is an instance of the Rule-Obj-Map Value type.
Definition :
– Use a map value rule to create a table of number, text, or date ranges that
converts one or two input values, such as latitude and longitude numbers, into
a calculated result value, such as a city name. Map value rules greatly simplify
decisions based on ranges of one or two inputs. Use a map value rule to
record decisions based on one or two ranges of an input value. A map value
rule uses a one- or two-dimensional table to derive a result.
Map Value Rule…
How and where the maps are referred ?

 From decision shape of flow rule.


 In an activity you can evaluate the map value using Property- Map-value
(Where you have only row input) or Property-Map-ValuePair( When you have
both row and column inputs ). By doing so, we can set a property value with
the return value of the map value.
 Map can be referred from Rule-Declare-Expression.
 A Map value can be referred from other map values.
Which Decision To Use At What Point
Of Time
 Decision Tree
– Accepts one input property value, but can evaluate numerous properties.
– For business logic currently stored in written documents.
– Best used for complex if/then/else statements.
 Map Value
– Can convert one or two property values into a single result.
– For computations based on ranges.
– Also for substitution of values.
 Decision Table
– Can convert multiple property values into a range of return values.
– Based on same property inputs with varying values.
 When
– Evaluates relationship among one or more property values and returns true or
false Based on simple if/then/else constructs.

You might also like