What is Primary Page in PEGA?
- January 13, 2021
- Posted by: AtoZ Trainings
- Category: PEGA Technology
Before we talk about it. Let’s do a simple example
Open Child Activity and execute it, trace it.
Every rule runs on a page that is called as Primary Page.
Example1:
Activity1 (Page1)
Call Activity2 NO StepPage (Primary Page of Activity2 = Page1)
Activty2
Activity3 NO StepPage (Primary Page of Activity 3 = Page1)
Example2:
Activity1 (Page1) (PrimaryPage –> Page1)
Call Activity2 Page2 (Primary Page of Activity2 = Page2)
Activty2
Activity3 NO StepPage (Primary Page of Activity 3 = Page2)
Example3:
Activity1 (Page1) (PrimaryPage –> Page1)
Call Activity2 Page2 (Primary Page of Activity2 = Page2)
Activty2
Activity3 Page3 (Primary Page of Activity 3 = Page3)


Go to tracer


At the first record we see that activity begin on step page is “RunRecordPrimaryPage”.
Activity has run on a page “RunRecordPrimaryPage”.
Now do the same for parent activity.

Run and trace it.

Here we can see child activity execution started on a Page “ParentPage”.
- Any Activity (Rule) when is executed independently (Not being called from any other rules), it stats execution on a page “Run Record PrimaryPage”.
In this case, “RunRecordPrimaryPage” is called “Primary” Page.
- If a rule is called from another rule while calling a specific page is mentioned then it runs on same mentioned page.

Here Child Activity runs on “ParentPage” -> That means Primary page for child activity is “ParentPage”.
Here Parent Activity runs on “RunRecordPrimaryPage” -> that means Primary Page for parent Activity is “RunRecordPrimaryPage”.
- If a rule is called from other rule, while calling no specific page is mentioned, Then the rule run on the same page of parent Rule.

Primary Page in Case of Flow
How to call an activity in a flow using Utility Shape.
If we want to call an activity in a flow using utility shape, activity type must be Utility.
Activity type can be chosen under security tab of activity rule form

Calling child activity in a flow using utility
Open child activity and go to security tab
Choose activity type utility.

Create a new flow


Remove assignment and utility

Double click on utility shape



Save.

When we run this activity it will be executed in back ground.

Here we can see activity execution started on pyWorkPage.
Here Primary Page of activity is pyWorkPage.
For Flow also Primary Page is pyWorkPage.
Summary:-
When we run a flow Primary Page = pyWorkPage
When we run a stand alone activity Primary Page = Run Record Primary Page
When we run any content in Portal all UI content run on Primary Page = pyDisplayHarness. PRPC provides a KeyWork for Primary Page = “Primary”.
Author:Yoktha
Leave a Reply Cancel reply
You must be logged in to post a comment.