Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Registered members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Pega Topic Wise Interview Questions and Answers
Pega - Activity
Pega - Activity Interview Questions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="AllJobsInfo" data-source="post: 1" data-attributes="member: 1"><p><strong><span style="font-size: 18px"><span style="color: rgb(243, 121, 52)">Activity Interview Questions and Answers</span></span></strong></p><p></p><p><span style="color: rgb(226, 80, 65)"><span style="font-size: 18px"><strong>1. Creating User Defined, activities a best practice of development?</strong></span></span></p><p><span style="font-size: 18px">A. No, We need to avoid creating our own activity, whenever it is possible.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">2. What are the max records that an Obj-Browse can fetch?</span></strong></span></p><p><span style="font-size: 18px">A. 10000 records.</span></p><p><span style="font-size: 18px"></span></p><p><span style="color: rgb(226, 80, 65)"><span style="font-size: 18px"><strong>3. What is the difference between Primary page and Step Page</strong></span></span></p><p><span style="font-size: 18px">A. Primary page is the Page on which a rule runs.</span></p><p><span style="font-size: 18px">B. Step page is the one which we mention at a step. If we don’t mention any page at step, that will be occupied by Primary page.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">4. Difference Between Call, Branch and Queue</span></strong></span></p><p><span style="font-size: 18px"><strong></strong></span></p><p><span style="font-size: 18px"><strong>Call </strong> </span></p><p><span style="font-size: 18px">It Calls Child Activity, then Parent activity waits for child activity to get completed, once child activity execution completes, control comes back to parent activity. Further steps after call step gets executed.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong>Branch </strong></span></p><p><span style="font-size: 18px">This behavior is called synchronous processing It Branches Child Activity, then Parent activity waits for child activity to get completed, once child activity execution completes, controls comes back to parent activity. Further steps after Branch step will be ignored</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong>Queue</strong></span></p><p><span style="font-size: 18px">This behavior is called synchronous processing It Queues Child Activity, But Parent activity will not wait for child activity to get completed, The parent activity and child activity executes in different threads. This behavior is called Asynchronous processing</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">5. How to pass parameter page from one rule to another?</span></strong></span></p><p><span style="font-size: 18px">A. By selecting the Option “Pass Current Parameter Page”.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">6. How to see param values?</span></strong></span></p><p><span style="font-size: 18px">A. Parameters we can not see on clipboard. We only see on tracer. Paramter page name “Unnammed”.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">7. What is the difference between Write Now and Commit methods?</span></strong></span></p><p><span style="font-size: 18px">A.</span></p><p><span style="font-size: 18px"><strong>Write Now </strong> </span></p><p><span style="font-size: 18px">It performs Immediate Commit on Specific Obj-Save , on which it is selected. It will not be able to release LOCK </span></p><p></p><p><strong><span style="font-size: 18px"> Commit</span></strong></p><p><span style="font-size: 18px"> It performs commit of Entire Differ Queue , More than one Obj-save, those are executed so far, gets committed.</span></p><p> <span style="font-size: 18px">This will release the lock</span></p><p><span style="font-size: 18px"><strong></strong></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">8. What is the difference between Roll back and Obj-Save Cancel?</span></strong></span></p><p><span style="font-size: 18px">A.</span></p><p><span style="font-size: 18px"><strong>Obj-Save-Cancel </strong> </span></p><p><span style="font-size: 18px">This is going to rollback(ERASE) the latest uncommitted obj-Save. </span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong>Rollback</strong></span></p><p><span style="font-size: 18px">This methods rolls back (Erases) entire differ Queue, all the obj-Save methods, executed so far, gets erased.</span></p><p><span style="font-size: 18px"> </span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">9. When do we need to use Commit, Write now option in the Obj-Save/Obj-Delete activity.</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. When the activity is NOT part of WO (Transactional) processing, then we need above options, else not needed.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">10. What is the option “Allow direct invocation from the client or a service” ?when we use it?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. When we call activity from Services, Agents, Connectors, HTML controls, we need to select this option.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">11. What are different Activity Types?</span></strong></span></p><p><span style="font-size: 18px">A. Activity, Utility, On change, Trigger, Load Data page, Route, Assign etc…</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">12. What is the Different between Activity Types, Activity & Utility?</span></strong></span></p><p><span style="font-size: 18px">A. Activity type Activity can be called from other activities and HTML rules. Whereas utility can be called from Utility shape.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">The main difference is Utility can use only back ground processing methods. We cannot use front end methods like Show-HTML, Show-Page, Show-Harness, Show-Property etc….</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">13. What is the option “Requires Authentication”? When we use it?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Select to require that only authenticated requestors can start this activity, generally the activity which part of security rule and create in class Code-Security.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">14. Suppose when we save multiple records of data let’s say 100, suppose if record 59 is failed for some reason. How to ensure to revert all the records saved so far to be reverted.</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. We can use OOTB activity “CommitWithErrorHandling” make sure transaction is fully committed.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">15. What is the Difference between, “Continue Whens”, “Skip Whens” at activity pre or post conditions?</span></strong></span></p><p><span style="font-size: 18px">A.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">For example </span></p><p><span style="font-size: 18px">Precondtion</span></p><p><span style="font-size: 18px">Condition1 ContinueWhen</span></p><p><span style="font-size: 18px">Condition2 Skipwhens</span></p><p><span style="font-size: 18px">Condtion3 ContinueWhens</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Continue Whens : When a condition is satisfied, it will execute next when condition. If there are is not when condition after the current condition, then step will get executed.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Skip Whens : When a condition is satisfied, It ignore the execution of next when conditions, proceeds executing the step.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">16. What is the property for Step Status in activity?</span></strong></span></p><p><span style="font-size: 18px">pxMethodStatus.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">17. When we have OOTB when rule StepStatusGood, Why do we need again another when rule StepStatusFail?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. It’s not only two Status for Step, we have Warn, GoodWarn etc…</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">18. I want to update the value of px-properties using Activity, how to active this?</span></strong></span></p><p><span style="font-size: 18px">A. We can use a method Property-Set-Special. We can update pxProperties.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">19. What is the difference between class key and pzInsKey?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. Class key is Unique ID of an instance, which is defined in the class rule form. For a given class, we can have more than class key, is possible.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">pzInsKey is Unique Primary of an instance. An instance will have one and only one pzInsKey.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">20. What is difference between obj-open, obj-Open-By-Handle?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Both will be fetching one record , page format.</span></p><p><span style="font-size: 18px">Open will fetch based on class key(s).</span></p><p><span style="font-size: 18px">Open-By-Handle fetches based on pzInsKey.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">21. Different between Write-Now and Commit w.r.to locking?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. Write Now can not release the lock, whereas commit releases the lock.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">22. Can we pass local variables from one rule to other rule?</span></strong></span></p><p><span style="font-size: 18px">A. No. only params can be passed.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong></strong></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">23. Where can see local variable defined on the rules?</span></strong></span></p><p><span style="font-size: 18px">A. We can see local variable on tracer, on a page LocalVariables. </span></p><p><span style="font-size: 18px">To see this, we need to choose an option on tracer settings, Local Variables. </span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Done.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">24. What is Obj-Refresh-And-Lock Or how to do exception handling to ignore locked cases while obj-Open?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">A. We can use Obj-Refresh-And-Lock </span></p><p> <span style="font-size: 18px">This method fetches one record onto step page like obj-open.</span></p><p><span style="font-size: 18px"> If the instance is already being acquired with lock, this method will not have any impact.</span></p><p><span style="font-size: 18px"> Else, this method opens the record on to step page and acquire lock on it.</span></p><p><span style="font-size: 18px"> This method is introduced as exception handling of Obj-Open, in case of clocking.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">If we try obj-Open, if lock is already acquired on case, this will halt the program by throwing error message.</span></p><p><span style="font-size: 18px">But Obj-Refresh-And-Lock will not halt the program, as given above, that’s what we call exception handling, during locking.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><strong><span style="color: rgb(226, 80, 65)">25. How to call flow from activity?</span></strong></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">We can do this is by calling OOTB activities</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Call NewFromFlow(WorkClasSName, FlowName)</span></p><p><span style="font-size: 18px">Call New</span></p><p><span style="font-size: 18px">Call Add</span></p><p><span style="font-size: 18px">Call AddWork</span></p></blockquote><p></p>
[QUOTE="AllJobsInfo, post: 1, member: 1"] [B][SIZE=5][COLOR=rgb(243, 121, 52)]Activity Interview Questions and Answers[/COLOR][/SIZE][/B] [SIZE=5][/SIZE] [COLOR=rgb(226, 80, 65)][SIZE=5][B]1. Creating User Defined, activities a best practice of development?[/B][/SIZE][/COLOR] [SIZE=5]A. No, We need to avoid creating our own activity, whenever it is possible. [B][COLOR=rgb(226, 80, 65)]2. What are the max records that an Obj-Browse can fetch?[/COLOR][/B] A. 10000 records. [/SIZE] [COLOR=rgb(226, 80, 65)][SIZE=5][B]3. What is the difference between Primary page and Step Page[/B][/SIZE][/COLOR] [SIZE=5]A. Primary page is the Page on which a rule runs. B. Step page is the one which we mention at a step. If we don’t mention any page at step, that will be occupied by Primary page. [B][COLOR=rgb(226, 80, 65)]4. Difference Between Call, Branch and Queue[/COLOR] Call [/B] It Calls Child Activity, then Parent activity waits for child activity to get completed, once child activity execution completes, control comes back to parent activity. Further steps after call step gets executed. [B]Branch [/B] This behavior is called synchronous processing It Branches Child Activity, then Parent activity waits for child activity to get completed, once child activity execution completes, controls comes back to parent activity. Further steps after Branch step will be ignored [B]Queue[/B] This behavior is called synchronous processing It Queues Child Activity, But Parent activity will not wait for child activity to get completed, The parent activity and child activity executes in different threads. This behavior is called Asynchronous processing [B][COLOR=rgb(226, 80, 65)]5. How to pass parameter page from one rule to another?[/COLOR][/B] A. By selecting the Option “Pass Current Parameter Page”. [B][COLOR=rgb(226, 80, 65)]6. How to see param values?[/COLOR][/B] A. Parameters we can not see on clipboard. We only see on tracer. Paramter page name “Unnammed”. [B][COLOR=rgb(226, 80, 65)]7. What is the difference between Write Now and Commit methods?[/COLOR][/B] A. [B]Write Now [/B] It performs Immediate Commit on Specific Obj-Save , on which it is selected. It will not be able to release LOCK [/SIZE] [B][SIZE=5] Commit[/SIZE][/B] [SIZE=5] It performs commit of Entire Differ Queue , More than one Obj-save, those are executed so far, gets committed. This will release the lock [B][COLOR=rgb(226, 80, 65)][/COLOR] [COLOR=rgb(226, 80, 65)]8. What is the difference between Roll back and Obj-Save Cancel?[/COLOR][/B] A. [B]Obj-Save-Cancel [/B] This is going to rollback(ERASE) the latest uncommitted obj-Save. [B]Rollback[/B] This methods rolls back (Erases) entire differ Queue, all the obj-Save methods, executed so far, gets erased. [B][COLOR=rgb(226, 80, 65)]9. When do we need to use Commit, Write now option in the Obj-Save/Obj-Delete activity.[/COLOR][/B] A. When the activity is NOT part of WO (Transactional) processing, then we need above options, else not needed. [B][COLOR=rgb(226, 80, 65)]10. What is the option “Allow direct invocation from the client or a service” ?when we use it?[/COLOR][/B] A. When we call activity from Services, Agents, Connectors, HTML controls, we need to select this option. [B][COLOR=rgb(226, 80, 65)]11. What are different Activity Types?[/COLOR][/B] A. Activity, Utility, On change, Trigger, Load Data page, Route, Assign etc… [B][COLOR=rgb(226, 80, 65)]12. What is the Different between Activity Types, Activity & Utility?[/COLOR][/B] A. Activity type Activity can be called from other activities and HTML rules. Whereas utility can be called from Utility shape. The main difference is Utility can use only back ground processing methods. We cannot use front end methods like Show-HTML, Show-Page, Show-Harness, Show-Property etc…. [B][COLOR=rgb(226, 80, 65)]13. What is the option “Requires Authentication”? When we use it?[/COLOR][/B] Select to require that only authenticated requestors can start this activity, generally the activity which part of security rule and create in class Code-Security. [B][COLOR=rgb(226, 80, 65)]14. Suppose when we save multiple records of data let’s say 100, suppose if record 59 is failed for some reason. How to ensure to revert all the records saved so far to be reverted.[/COLOR][/B] A. We can use OOTB activity “CommitWithErrorHandling” make sure transaction is fully committed. [B][COLOR=rgb(226, 80, 65)]15. What is the Difference between, “Continue Whens”, “Skip Whens” at activity pre or post conditions?[/COLOR][/B] A. For example Precondtion Condition1 ContinueWhen Condition2 Skipwhens Condtion3 ContinueWhens Continue Whens : When a condition is satisfied, it will execute next when condition. If there are is not when condition after the current condition, then step will get executed. Skip Whens : When a condition is satisfied, It ignore the execution of next when conditions, proceeds executing the step. [B][COLOR=rgb(226, 80, 65)]16. What is the property for Step Status in activity?[/COLOR][/B] pxMethodStatus. [B][COLOR=rgb(226, 80, 65)]17. When we have OOTB when rule StepStatusGood, Why do we need again another when rule StepStatusFail?[/COLOR][/B] A. It’s not only two Status for Step, we have Warn, GoodWarn etc… [B][COLOR=rgb(226, 80, 65)]18. I want to update the value of px-properties using Activity, how to active this?[/COLOR][/B] A. We can use a method Property-Set-Special. We can update pxProperties. [B][COLOR=rgb(226, 80, 65)]19. What is the difference between class key and pzInsKey?[/COLOR][/B] A. Class key is Unique ID of an instance, which is defined in the class rule form. For a given class, we can have more than class key, is possible. pzInsKey is Unique Primary of an instance. An instance will have one and only one pzInsKey. [B][COLOR=rgb(226, 80, 65)]20. What is difference between obj-open, obj-Open-By-Handle?[/COLOR][/B] Both will be fetching one record , page format. Open will fetch based on class key(s). Open-By-Handle fetches based on pzInsKey. [B][COLOR=rgb(226, 80, 65)]21. Different between Write-Now and Commit w.r.to locking?[/COLOR][/B] A. Write Now can not release the lock, whereas commit releases the lock. [B][COLOR=rgb(226, 80, 65)]22. Can we pass local variables from one rule to other rule?[/COLOR][/B] A. No. only params can be passed. [B][COLOR=rgb(226, 80, 65)][/COLOR] [COLOR=rgb(226, 80, 65)]23. Where can see local variable defined on the rules?[/COLOR][/B] A. We can see local variable on tracer, on a page LocalVariables. To see this, we need to choose an option on tracer settings, Local Variables. Done. [B][COLOR=rgb(226, 80, 65)]24. What is Obj-Refresh-And-Lock Or how to do exception handling to ignore locked cases while obj-Open?[/COLOR][/B] A. We can use Obj-Refresh-And-Lock This method fetches one record onto step page like obj-open. If the instance is already being acquired with lock, this method will not have any impact. Else, this method opens the record on to step page and acquire lock on it. This method is introduced as exception handling of Obj-Open, in case of clocking. If we try obj-Open, if lock is already acquired on case, this will halt the program by throwing error message. But Obj-Refresh-And-Lock will not halt the program, as given above, that’s what we call exception handling, during locking. [B][COLOR=rgb(226, 80, 65)]25. How to call flow from activity?[/COLOR][/B] We can do this is by calling OOTB activities Call NewFromFlow(WorkClasSName, FlowName) Call New Call Add Call AddWork[/SIZE] [/QUOTE]
Verification
Post reply
Home
Forums
Pega Topic Wise Interview Questions and Answers
Pega - Activity
Pega - Activity Interview Questions
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top