Pega Final
Pega Final
Pega Final
OBJ Methods: Used to fetch the data from RDB-Methods: Used to fetch the data from the
internal database external database table
Obj- Open: Used to fetch the single values from RDB-List : Used to retrieve the multiple records
the Internal DB from the external data base table
Parameters: RDB-Open: Used to retrieve the single record
Open Class: Enter My Database table name from the external data base table
Obj-Open- BY-Handle: Used to fetch the single RDB-Delete : Used to delete the records from
record from the Internal database, here we can the external data table
pass “ pzinskey” RDB-Save: used to save the records from the
pyid and workobject external data table
Instance Handle: Enter pzinskey
4.Obj- Browse: Used to fetch the Multiple
records from internal database
Parameters: ,Page Name: , Obj Class:
Max Records
5.Obj -Validate: Using this validate the property
File Listener:
By using File listener, we can move the data from local machine/remote location to PRPC
data tables OR we can create work objects.
Configuration:
1. We need to create a Data table with some columns
2. Create a Parse Delimited rule, with appropriate parse settings.
3. Create a Package to create a Service File. (Uncheck authenticate check box and give
access group name)
4. create a Service File rule in which we need to include an activity, which will move the data
from clipboard Page to data table.
5. Create a File Listener (Integration Resources-->File Listener) rule define source path , type
of File(txt, XML).
6. We can monitor the listener status by using SMA.
7. We can start or stop the listener with the help of SMA.
Email Listener:
For sending the automated reply to the senders in any organizations by creating a
referenceID (Work Object) we can go for Email Listener.
The rules Involved in configuring email listener:
1)By using Email wizard we can configure email listener. If we are doing by using email
wizard (accelerator), we need to create Email Account only, remaining rules system will
create automatically.
Following rules will be created:
1. Service Package
2. Service-Email rule.
3. Email Listener.
4. Service Activity.
Difference between Activity and Utility
an activity indicates a sequence of automated business logic which follows the rule of Rule-
Obj-Activity while Utility is a type of use of an activity that refers to a shape in the Pega flow.
Difference between forward and backward changing.
Backward chaining starts with a goal and then searches back through inference rules to find the facts
that support the goal. Forward chaining starts with facts and searches forward through the rules to
find a desired goal.
It Calls Child Activity, then Parent activity waits for child activity to get completed, once child activity
execution completes, control comes back to parent activity. Further steps after call step gets
executed. This behaviour is called synchronous processing
Branch
It Branches Child Activity, then Parent activity waits for child activity to get completed, once child
activity execution completes, controls comes back to parent activity. Further steps after Branch step
will be ignored This behaviour is called synchronous processing
Queue
It Queues Child Activity, But Parent activity will not wait for child activity to get completed, The
parent activity and child activity executes in different threads. This behaviour is called Asynchronous
processing
Agents: An agent is an internal background process operating in the server on a periodic
basis. Each agent rule can contain individual agent activities for different processes. Agents
come under SysAdmin category and each ruleset can contain only one Agent rule
Task driven: For Task driven Type system will maintain the Queue, Based on The queue,
agent will execute the tasks (Activity).
For Each periodic time, System will check the queue. If the Queue is non empty then Agent
will execute the activity otherwise agent will go to sleep.
Process Driven (schedule driven): Agent will execute the activity for each periodic time
specified.
Note: We can add the Items (Tasks) to the Queue by using the method "Queue-For-Agent"
in Activity. This is Maintained by Master Agent. The queue entries will be present in the
table pr_sys_queues(System-Queue-Defaultentry)
Points to remember:
1. If we create an instance of Rule-Agent-Queue (Agents) then system will create the
instance of Data-Agent-Queue (Agent schedule) automatically.
2.we can create only one agent for a rule set. ( name of agent is nothing but name of
ruleset)
Modes of agents:
Standard Advanced
Auto Queue Management No queue management
Legacy:
1. This mode of agents were in use prior to 5.5 version and is deprecated.
2.This follows Process Driven approach
3.This mode of agents never maintain the Queue
Service Level – It enable us to setup goals and deadline as a part of case management process. It
establish to help the task force to handle everything on time.
Types of SLA's
1. Assignment level SLA
2. WO level SLA
1. Assignment Level SLA: Assignment level SLA we need to define in Assignment shape. For
this sla time starts when the WO reaches to assignment.
Once the goal reaches it will increase the urgency and Executes escalation activity.
Once the deadline time reaches, it will increase the urgency and executes escalation activity.
WO Level SLA: For this kind of SLA, sla time starts when the work object is created. We need
to define this in pyDefault model (data transform) rule using pySLAName property.
Once the goal time reaches it will increases the urgency and executes escalation activity.
After goal time, once the deadline time completes it will increase the urgency and executes
escalation activity.
Decision Rules
1. Decision Table
2. Decision Tree
3. Map Value
4. When
Decision Table : If we have 'n' number of conditions only one condition will get true then
we go for decision table
It comes under decision category
In decision table we can’t possible to call the Decision Tree
How to call the Decision Table in Activity:
By using Property-Map-Decision Table
Decision Tree:
Tree can be used to execute multiple conditions. The main purpose of the tree nesting it
means to call Tables and Map Value in Tree
How to call the Decision Tree in Activity:
By Using Property-Map-Decision Tree
When Rule: It can execute based on True / False Condition
We can call the directly in when rule
Flow vs Flow action
Flows are associated with each step in a stage of a case type. It is used in graphical shape
and connector. You can edit flows with Process Modeler or Case Designer. A flow action
displays a task to users when they run flows.
Page - When you want to get data of something which doesn't repeat. Eg. .EmployeeData
(Property of type Page) - One employee has only one record in database
Page List - When you have number of items for something which cannot be grouped by
some property. Eg. .EmployeeAccounts (Property of type Page List) - One employee can
have multiple accounts.
Page Group- When you have number of items for something which can be grouped
by some property which is only text without special characters Eg. .EmployeeAccounts
(Property of type Page Group) - One employee can have multiple accounts
Flow Actions: It contains the properties, sections or layouts come under the process
category.
Types
1. Local Flow Action: Completes the current assignment and advances the flow to next
shape in sequence.
2. Connector Flow Action: It leaves the current assignment open and doesn’t advance the
flow.
Note: In flow action we can call the different rules Like Validation rules, Activity and Data
Transform.
Split Join : You want to start multiple flows ex. BackgroundCheck, EmploymentCheck etc.
This is not based on a Page list, you need to specify all Flows to start in configuration.
Split for Each : You have one flow, let's say Approval and you want to run this flow for all
elements in Page list to assign to different approvers. So this shape will start multiple
instances of same flow based on number of elements in Page list. You have to specify one
flow name and page list name in configuration.
Datapages- A data page defines the contents of a clipboard page and enables the system to access
data from a range of sources on demand.
Thread – The page is created in a single requestor thread and can be accessed as often as
needed by processing in that thread.
Requestor – The requestor can access the page(s) loaded across all threads
Node – Any requestor executing on the current node can access the pages.
data transform defines how to convert data that is in one format and class into data of
another format and class. Using a data transform instead of an activity to set property values
speeds up development and makes application maintenance easier.
Rule resolution
Rule resolution is a search algorithm used to find the most appropriate instance of a
rule to execute in any situation.
Job scheduler rules replace advanced agents for recurring or scheduled tasks such as sending
emails on weekdays. Job scheduler rules simplify item scheduling because you configure a single job
scheduler rule instead of selecting a standard agent or an advanced agent.
3. Define reports?
The report is a law in Pega, where it mostly used by managers to analyze and verifies the
data and also to visualize the in general progress. List view and Summary vision are the
accepted views in Pega.
Portal layout,
Grid layout
Dynamic layout
Column layout
Declare Expressions
Declare Constraints
Declare On change
Declare trigger
Declare Index.
24. How do we get the data from the two different tables?
Using the link tab in Reports
Base class: It is the ultimate base class, and Its Child Classes are work-, Data-,
Rule-, Assign-, History-, etc. Pega always supports two types of classes which are
abstract classes and concrete classes.
Abstract Classes: These classes end with ‘-‘ and abstract classes cannot create any
work object instances.
Concrete Classes: It does not end with ‘-’, and abstract classes will create work
object instances.
3. What is the difference between Page and Page List property, how are
they implemented?
Ans:
Page property refers to a particular class and is used to access the property of that
class.
Page List Property also refers to a particular class, but it’s a collection of individual
pages of the same class which can be accessed through numeric indexes.
A work object is the primary unit of work completion in an application and the primary
collection of data that a flow operates on.
When an application is used, work objects are created, updated, and eventually
closed (resolved).
Every work object has a unique ID (property pyID), an urgency value, and a status
(property pyStatusWork).
Service level contains two intervals of time as Goal and Deadline. It indicates the
expected time for the assignment and time to resolve the work object. If an
assignment isn’t completed before the time limit, the system can automatically raise
the assignment and cancel the entire flow, and so on.
Column layout.
Grid layout.
Portal layout.
Dynamic layout.
11. Can we use Rdb-Save along with commit, if yes then why? if not yes
then why?
Ans: Yes, commit is used to save the data permanent in the DB.
12. What is Access Group and Access roles and difference between them?
Ans:
13. What is Covers folder and object and differences among them?
Ans:
Cover is work object that is parent to one or more related work objects.
One work party is present in the cover work object and also present in the covered
work objects associated with the covers.
Folder is work object in concrete class that inherits from the work-Folder-class.
A folder object holds a collection of one or more other work objects providing access
for reporting.
Access Group controls the security based on the job functions. It is the instance of
Data-Admin-Operator-AccessGroup. Various aspects that can be controlled through
an access group are
Explore Curriculum
Local FA: If action is finished, the work object returns to the same level.
Connector FA: If action is finished, the work object moves to the next level.
Operator ID: If this user has the ability to check out rules, the personal RuleSet
(named the same as the Operator ID key) is added last. It is also called a private
ruleset.
Rule-Declare-Expressions.
Rule-Declare-Index.
Rule-Declare-Trigger.
Rule-Declare-OnChange.
Rule-Declare-Constraints.
Page-Validate:
This method is used to validate all the properties present on a page. If a page
contains embedded pages, this method works recursively to validate all the
properties. This method consumes a lot of system resources and takes more time. If
you want to validate specific properties use Obj-Validate method with Rule-Obj-
Validate rule.
Property-Validate:
This method is used to impose restrictions on property value. Use the Edit validate
rule along with Property-Validate method to impose restrictions. You can validate
multiple properties using the Property-Validate method.
20. Explain about case management in Pega?
Ans: Case management in Pega enables a user to adapt to the unpredictable, event-
driven or automatic changes in a case and its processes. It pools real-time
adaptation with unique solutions for every case to suit ad-hoc additions. It also saves
the case as a template for the future application.
Subscribe
Decision Table:
Decision Tree:
Declare Trigger runs an activity when instances of a specific class are created,
updated, or deleted in the DataBase.
Declare Trigger is always Forward Chaining.
Example: If the Area property depends on the length and width property, then
Forward Chaining causes the area property to be recalculated every time either
length or width values change.
29. What is Backward Chaining?
Ans: BackWard chaining provides the automatic calculation of the property by
executing the declarative rule when the value is needed for the property, rather than
when an input changes.
Example: If the area property depends on length and width property, the backward
chaining causes the area property to be recalculated each time the area property is
required.
Create a class inheriting from the Index- class. Provide these three properties:
pxInsIndexedKey, pxIndexCount, pxIndexPurpose.
Create Rule-Declare-Index and provide source page context and source page
context class, index class to write.
In the list view, the Join tab provides declare index name.
In Agent Schedule, schedule tab verifies the checkbox “Enable this agent”, if this
option is checked or not.
The same thing also checks in Agents Rule.
In Tracer, we can trace the particular operator or particular Agent.
In “prsysmgmt” portal, In the Agent Management, select the particular agent and
delay the agent and then run the Tracer.
We can use the Agent Management link in the System Management Application to
monitor and control agent processing. The agent runs on different nodes, selects
the particular node and runs the Tracer.
If an assignment isn't completed before the time limit, the system can automatically
raise the assignment, and cancel the entire flow, and so on
EX: If the Area property depends on the Length and Width property, then forward
chaining causes the Area property recomputed each time either Length/Width value
changes.
EX: If the Area property depends on the Length and Width property, then backward
chaining causes the Area property recomputed each time the Area property is
required.