Declare trigger and OnChange in pega

OnChange

Declare OnChange rules to run an activity automatically at activity step boundaries when the value of specified property changes. This capability provides a form of automatic forward chaining.
OnChange activity to be executed automatically by a Declare OnChange rule, such activities must not use any methods that directly change the properties or the database.


Advertisement

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.


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