Showing posts with label Activity. Show all posts
Showing posts with label Activity. Show all posts

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).


Pega Activities complete understanding

To automate the process when there are no appropriate rule types available we can use activities. Activities contain sequential steps run one after another. Once all steps are completed control goes back to the rule that is called activity.


Pega remove duplicates from activity and data transform

How can we remove duplicates from a Page-List?

Byusing Pega functions like “RemoveDuplicatesInPageList”, pzRemoveDuplicatesFromListPage and pzRemoveDuplicatesFromListPage
We can use both the functions in Data Transform and Activity.





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


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.



Activity End and Exit Activity methods in pega

Activity-End method?

Use the Activity-End method to cause the system to End the current activity and all calling activities.



Pega standard Work object creation activities

  Work-. Add 

Creates a new work object (without any cover work object) and performs a Commit method, which saves the work object and releases all locks.


  Work-.AddWork 

Use Work-.and work rather than Work-. Add in situations where the Commit method is not wanted until later.


   AddCoveredWork 

Creates a new cover work object but does not perform a Commit method, so current locks are retained.


  Work-.AddCovered 

Use Work-.AddCovered rather than Work-.AddCoveredWork to commit the new work object.


  New 

Called by harness processing to create a (non-covered) work object and display the work object form.


  NewCovered 

Called by harness processing to create a covered work object and display the work object form.


more on activities Activity Full understanding