Pages

Wednesday, 16 May 2018

Decision Rules PEGA PRPC


Decision Rules: They are from Decision Rule category. Define condition separately and we need to manually call that condition in different rules
  • Decision Table
  • Decision Tree
  • Map Value
  • When


Decision Table: [if, else if], 3 ways we can call Decision Table Methods
  • Flows: Decision Shapes
  • Activity: Property Map Decision Table (along with the condition if you want to add any page-level expression then we will go with this)
  • Declare Expressions: Results of Decision table(along with the condition if you want to add any property-level expression then we will go with this)
Decision Tree: [if, nested if], 3 ways we can call Decision Tree
  • Flows: Decision Shapes
  • Activity: Property Map Decision Tree (along with the condition if you want to add any page-level expression then we will go with this)
  • Declare Expressions: Results of Decision tree (along with the condition if you want to add any property-level expression then we will go with this)
 Map Value: Matrix Condition – Comparing (2 properties), 3 ways we can call Decision Tree
  • Flows: Decision Shapes
  • Activity: Property Map Value/ Value Pair (along with the condition if you want to add any page-level expression then we will go with this)
  • Declare Expressions: Results of Map Value  (along with the condition if you want to add any property-level expression then we will go with this)
When: we can call them in only decision shape.

Validations in PEGA PRPC


There are two types

  • Server side validations
  • Client side validations

Server side validations: using Activity rule with some methods – post condition/jump

Client side validations: they are 3 types.

  • Property Level Validations: can set from advanced tab. It is a fixed validation on property. It applies all over the application for the property. Pre-defined functions are available and we can define user defined validations
  • Page Level Validations:  can set from Process > Validation In single rule, we can define multiple properties for validation in page level. We can set these from Flow Action. We can use predefined validations, but you can customize them. No chance to create User defined.
  • Declare Validations: combination of Property level and Page level validations.Fixed validations like Property Level validation. Uses functions like Page Level validation


Note: Property level validation will be trigger automatically wherever we used that property. Page Level validation you need to explicitly call them.