2
Class Structure In PRPC every rule is an instance of a class A class is an instance of Rule-Object-class Each class contains diff categories of rules like sys admin, organization ,application Definition The class created by us will be saved under the given rules. In PRPC two types of classes are available they are: Abstract class, Concrete class In PRPC @base class is the super most base class The immediate sub classes of @ base class are work-, Data-, History. The classes those are derived from work- are called work classes. .PYID is the key of the table Abstract Class: Abstract classes are not initialized this means it cannot be used to create the objects. Abstract classes can be used to define the re-usable rules. Class name should end with “—“ Abstract class should be derived from @base class or from its super classes. Concrete class: Concrete classes are initialized classes. The concrete classes can be used to specialized rules. Used to create work objects. Should not end with “—“ Concrete classes should be derived from work-, or work-object-. The concrete class’s instances saved in a Data Base. Class is going to store in the ruleset. Class Group/Work pool A class group is nothing but grouping individual concrete classes together to store the instances in a single data base table. The class group should be inherited from work- Work pool is a collection of work class until creating a class group we need to specify a class as class group and you need to supply primary key. There is one class group for one application. Inheritance:

Pega Training Institutes in HYderabad | Pega Training in Hyderabad

Embed Size (px)

Citation preview

Page 1: Pega Training Institutes in HYderabad | Pega Training in Hyderabad

Class Structure

• In PRPC every rule is an instance of a class• A class is an instance of Rule-Object-class• Each class contains diff categories of rules like sys admin, organization ,application Definition • The class created by us will be saved under the given rules.

In PRPC two types of classes are available they are: Abstract class, Concrete class• In PRPC @base class is the super most base class• The immediate sub classes of @ base class are work-, Data-, History.• The classes those are derived from work- are called work classes.• .PYID is the key of the table

Abstract Class:• Abstract classes are not initialized this means it cannot be used to create the objects.• Abstract classes can be used to define the re-usable rules. Class name should end with “—“• Abstract class should be derived from @base class or from its super classes.

Concrete class: • Concrete classes are initialized classes. The concrete classes can be used to specialized rules.• Used to create work objects. Should not end with “—“• Concrete classes should be derived from work-, or work-object-.• The concrete class’s instances saved in a Data Base.• Class is going to store in the ruleset.

Class Group/Work pool A class group is nothing but grouping individual concrete classes together to store the instances

in a single data base table. The class group should be inherited from work- Work pool is a collection of work class until creating a class group we need to specify a class as

class group and you need to supply primary key. There is one class group for one application.

Inheritance:• Inheritance is nothing but accessing the rules defined in parent class can be accessed in chilled

or sub classes • In PRPC two types of inheritance : Direct inheritance & Pattern inheritance

Direct inheritance:• Direct inheritance is nothing but directly inheriting from the class that you want. • In direct inheritance no need to have parent class name as prefix • Direct inheritance is mandatory • Direct inheritance has to be explicitly specified by the developer • Direct inheritance can be identified by using the thick line ()

Pattern inheritance:

Page 2: Pega Training Institutes in HYderabad | Pega Training in Hyderabad

• Pattern inheritance follows the pattern of names and hyphen (-) in the class name to define the inheritance.

• In pattern inheritance you need to have the parent class name as prefix • It is optional. It can be identified by using……..> line

A class can have both pattern and direct inheritance at the same time. But it can have only one pattern and one direct but must have a direct parent.

PRPC uses an algorithm to find out a rule in the inheritance is known as “Rule Resolution Algorithm”.

If a class is having both direct and pattern inheritance then the rule resolution algorithm search for the rule by using pattern inheritance first.

If the rule is not traced /found then rule resolution algorithm search for the rule by using direct inheritance.

By default the rule is searched based on pattern inheritance.