Saravanan's Corner: Blackberry Dev

Monday, 17 September 2018

Pega -Basics

Pega Basics:


What is Class Group?


  • Class Group is a combination of one or more abstract class
OCBC-OCBCAuto-OCBCWork
OCBC- (Org Abstract Class)
OCBCAuto- (Div Abstract Class)
OCBCWork (Unit Level Concreate Class) Inheriting from Work-
You are been applied with Pattern inheritance

Types of inheritance in Pega:

There are 2 types of inheritance available.
  • Direct Inheritance
  • Pattern Inheritance
1. Direct Inheritance
A class can have one and only one parent which is called the direct parent.
Direct parent of the class can be chosen from the drop-down Parent class (Directed)

2. Pattern Inheritance
Pattern Inheritance on a class can be applied by selecting the checkbox Find by name first (Pattern)
When we select the checkbox, the class will be applied by pattern inheritance.
OCBC-OCBCAuto-OCBCWork applied with pattern inheritance. PRBC trades OCBC-OCBCAuto parents classes to OCBCWork.

Pattern Inheritance has multiple parents.

The class group will be automatically created when we create a new application.

3. How to create a new application in Pega7?

A new application can be created from the 'New application wizard'. when we create new application it creates below

4. Components.

1. Application
2. Operator IDs with default password 'rules'
3. Class group

Steps

  • Login PRPC with administrator@pega.com/install
  • Click on the top menu and choose the new application
  • Application name - DBS Insurance Operation
  • Build on application - PegaRules
  • Organization name: DBS
  • Click on Next
  • Business objective: enter objective of you
  • Skip case type and Datatypes
  - Now it created with below operators,
1. administrator (Developer login),
2. DBA (Developer login)
3. Manager
4. User

- with default password 'rules'.

- It creates 'DBS insurance Operations' application

- Login with Admin@rules/rules

- Once we log in, click on application explorer which displays the class group.

- DBS-DBSINSURU-Work


4. Design a screen to capture customers basic information
  • First name 
  • Last name 
  • Age
  • Gender
  • phone number
  • email
  • address
5. To create a webpage, follow below steps

  • Step 1. Identify and create all the required properties.
  • Step 2. Design UI by creating 'Section', drag and drop the above-created properties on the layouts of section
  • Step 3. Create a flow action, call the above-created section into this flow action.
  • Step 4. Create a workflow, call the above-created flow action into the flow by using an assignment sheet
  • Step 5. Create a work object for the above-created flow, save the flow and run it
Step 1  Creating properties
  • A property can create under data-model category
  • Right click on data model, create -> data model - > property
  • Enter label name -> press create and open button -> accept in the default and click on Save
  • Create other properties in a similer way..

Step 2. Design User Interface by creating section.
  •  The section can be created under user interface catagory
  •  Right click on class group -> user Interface -> section
  •  Section name & configuration : section label : capture customer details -> click create and open
  •  How to align this control in the layouts and how to add a header text to the layout:
  •  Click on the layout to select it and click on view properties icon
  •  Layout format: inline format double
  •  Select the check to display header and title
  •  Write title in the text box and then submit the popup
  •  Click on save so section will be created.

Step 3 Creating flow action:

  •  Flow action can be created under the process category.
  •  Classgroup -> process -> flow action
  •  Config: capturing the customer details -> create
  •  Select the section from the drop down and save.

Step 4 : Creating a workflow:
  • Flow call the above created flow action into the flow by using an assignment sheet
Step 5. Create a work object for the above created flow, save the flow and run it

6. Implementation


Step1. Creating Properties

 A property can create under the data-model category

  • Right click on data model, create -> data model - > property
  • Enter label name -> press create and open button -> accept in the deaful and click on Save
  • Create other properties in a similar way

Step 2. Design User Interface by creating section.

  • The section can be created under user interface category
  • Right click on class group -> user Interface -> section
  • Section name & configuration : section label : capture customer details -> click create and open
  • You can check how to align this control in the layouts and how to add a header text to the layout:  click on ..

Step 3 Creating flow action:

  • Flow action can be created under process category.
  • class group-> create -> Progress -> Flow Action
  • Give the name of flow action : capturing the customer details

Step4 : Double click on out bold connector on assignment shape , it open a popup


Step 5 : Creating work object as below

  • Go the process on above flow , select check box create a new work object and save
  • Run the flow from action drop down.

Done.

No comments:

Post a Comment