Professional Documents
Culture Documents
Activity On Pega
Activity On Pega
Scenario:
Get the operators who are skilled in one particular language. Activity to get all the
operators who are skilled in the language that was passed as parameter to the activity.
Approach:
Create an activity rule GetSkilledOperators
Detailed Steps:
1. Create an activity GetSkilledOperators in TGB-HRApps-Work class. The activity
Steps, Parameters and Pages & Classes tab
2. In Step 1, use the method Page-Remove to remove the page “AllOperators” from
clipboard.
6. In Step 3.1(image), use the Property-Set method to populate the local variable
count.
7. In the Step 3.2, for each embedded page in AllOperators, loop through pySkills
pagelist and use the method Page-Copy
Page-Copy method Parameters:
• CopyFrom AllOperators.pxResults(Local.count)
• CopyInto FilteredOperators.pxResults(<APPEND>)
8. In Step 3.2, add a when condition to the Page-Copy step that checks pySkillName
with the parameter passed.
The Operators whose skillname matches with the parameter are copied to
FilteredOperators pagelist.
Test Activity