How to write a java code in an activity?

 How to write a java code in an activity? 

Just by using an API “java” in the method tab.
Eg. If we want to access a clipboard property then the java code will be like,
Tools.findPage(“pageName”).getString(“.PropertyName”);

note:

Pega guardrail is to limit custom java in all possible situations.

java method in activity

Get a full understanding of ACTIVITY


Advertisement

What is a step page what role does it play in an activity?

What is a step page what role does it play in an activity?

Step Page in activity

Each step in an activity may have a designated step page. When creating or updating an activity, the developer identifies an existing or new clipboard page for the method (or instruction) in that step to act on, in a column of the tab labeled Step Page.


Advertisement

Routing activities in pega

All these are defined in Work- class and all these are "Route" type Activities.

ToCreateOperator 

Route the assignment to the user who entered the work object.

  ToWorkbasket 

Routes the assignment to a workbasket identified in a parameter.


Activity Page methods in pega

Page-Copy method

The page-Copy method is used to copy the contents of a source clipboard page to a new or previously created destination clipboard page. The source page is not altered.
After this method completes, the destination page contains properties copied from the source page and can contain additional properties from a model.


What is the difference between Call and Branch in an activity ?

What is the difference between Call and Branch?

Call

The Call instruction calls another specified activity and executes it. When that activity completes, control returns to the calling activity.



Activity Property- methods in pega

Property-Set method


The property-Set method used to set the value of one or more specified properties.

Property-Set-Message

The property-Set-Message method is used to associate a text message with a property or a step page. The system reads the appropriate property and adds the message to the page. We can provide the entire literal text of the message, or reference a message rule key that in turn contains message text. (Rule-Message rule type).


How to remove duplicates in report definition in pega

Remove duplicates in Report definition


Need to check the box (Remove duplicate rows) from Query tab of report definition rule.

How to remove duplicates in report definition in pega

Default max rows in the report definition



Attribute based access control in Pega (ABAC)

Pega ABAC vs RBAC

As we all know, securing our application and data is very important in real-time. We can provide security to our application and data by defining some policies, conditions, and controlling app features and user actions.
Pega defines some access control rules to define and secure our application.
Access roles, Access Role to object, Access deny, Privilege these are all to grant or deny access to an application to the user. Pega has two mechanisms ABAC and RBAC.