What is the difference between parameters and local variables? How are they used in an activity?

What is the difference between parameters and local variables? How are they used in an activity?
Values stored in parameter values can be shared between two activities but the scope of local variables is confined to the activity in which they are declared.
Parameters can be referenced as Param. parameter name.
Local variables are referenced as Local. variable name. more on Activities


Advertisement

Pega Class Group

The Class is an instance of rule ‘Rule-Obj-Class’.

The class can be created as ‘Abstract Class’, ’Concrete Class’, or ‘Class Group’.

Class Group is a concrete class while creating it is mentioned as ‘is a Class Group. The basic purpose of creating a Class Group is to group the classes; we are making a set of classes that share a common key structure. All instances of these classes to be stored in a single database table.



Advertisement

How to configure Service REST in pega

What is REST?

Nowadays we are using REST integration interface to interact with external systems through web service in Pega, basically to make calls between machines.
REST stands for Representational State Transfer Protocol.

What is REST in Pega?

Pega is proving a service (response) to the external system by processing the request received from an external system.
Basically, we will receive a request from external system/machine to Pega, Pega will process that request and provides a response back to an external system.

service rest in pega
Add caption
The request will be in different types XML/JSON. Let’s consider the request type is JSON.


Clear messages in data transform ?


In Activity, we can use the Page-Clear-Messages method to clear all the messages from the step page.
But can we remove messages from the data transform?
We can try to use functions to clear messages from the primary page in data transform.
@pxClearMessages() - to clear messages from the primary page.
@pxClearMessages( Page clipboard page) - this is to clear messages from the specific page.
Generally, these functions will be used in error handling in the data page response data transform.

 Set param.status equal to @pxClearMessages()
 Set     param.status equal to @pxClearMessages(tempPage)
Pega will return param value to "true" if it is successfully clears all messages.



Pega RDB Methods

RDB Methods:

Use Connect SQL rules and RDB methods only with an external database. Do not use Connect SQL rules or RDB methods for the PegaRULES database(s). Because not all properties in the PegaRULES databases are distinct database columns, use the Obj-Open and Obj-Save methods, not the RDB- methods, with the PegaRULES database to prevent loss of data.



Pega Obj Methods

 Obj Methods:

At runtime, five methods (Obj-Browse, Obj-Filter, Obj-List, Obj-List-View, and RDB-List), list view rules, and summary view rules use a page of the class Code-Pega-List

Code-Pega-List class as a source of search criteria and to hold the output. Typically, such pages are named Results, pyQueryResultPage, or pyViewLookupList. Search results (which support rows of report output) are stored as pages in the pxResults() property, a Page List.



Pega Basics

Below are the topics which are covering in this post.
  • Operator ID
  • Access Group
  • Organization – Division – Unit
  • Roles & Portals
  • Properties
  • Status of a Work Object


Pega Work related terms and explanation

Work Type

Work Item

Work Pool

Work Group

Work List

Work Basket

Work Party


Work – base class

Every application requires at least one concrete class derived from the Work- base class.