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 - Case Type Covers ( Parent and Child Cases )
Pega - Case Type Covers ( Parent and Child Cases )
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: 6" data-attributes="member: 1"><p><strong><span style="color: rgb(226, 80, 65)">1.How to Access Parent case data at child cases?</span></strong></p><p><strong>A.At each child case, parent case data will be made available in the name of a system created page, pyWorkCover.</strong></p><p><strong>pyWorkCover is a Copy of pyWorkPage of Parent Case.</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">2.You are writing an activity at Child case1, how to copy the data of Child case2?</span></strong></p><p><strong>A.We should open the childcase2 on a temp page and use it.</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">3.How to update Data from Parent to Child during Processing of Parent case?</span></strong></p><p><strong>A.We need to open the child case, on to temp page, update Parent case data to temp page, lock and Save it.</strong></p><p><strong>B.PRPC has an OOTB flow shape for the same. “Update Case”</strong></p><p><strong>[ATTACH=full]17[/ATTACH]</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">4). Where is the relation defined between parent and child cases? How do we know , the child cases of a parent?</span></strong></p><p><strong></strong></p><p><strong>[ATTACH=full]18[/ATTACH]</strong></p><p><strong></strong></p><p><strong>Under pyWorkPage of Parent case, we have “pxCoveredInsKey”. Which will have all it’s child cases, pzInsKeys.</strong></p><p><strong>This pxCoveredInsKeys is an OOTB value list property.</strong></p><p><strong>Done.</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">5.Write an activity at Parent case and fetch child case data?</span></strong></p><p><strong>We can use Obj-Open-ByHandle and Open child case data. </strong></p><p><strong>Loop through for each value in Valuelist and pass the pzIsnKey like below</strong></p><p><strong>pyWorkPage.pxCoveredInsKeys(<CURRENT>)</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">6.We are designing child case1, write an activity to fetch other child case(s) data?</span></strong></p><p><strong>We can use Obj-Open-ByHandle and Open child case data. </strong></p><p><strong>Loop through for each value in Valuelist and pass the pzIsnKey like below</strong></p><p><strong>pyWorkCover.pxCoveredInsKeys(<CURRENT>)</strong></p><p><strong></strong></p><p><strong>[ATTACH=full]19[/ATTACH]</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">7. How do we want to update data from parent to child at the time of a child case is getting created?</span></strong></p><p><strong>Two ways</strong></p><p><strong>1.Data Propagation : Copying data from parent to child ,while child is getting created.</strong></p><p><strong>[ATTACH=full]20[/ATTACH]</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong>2.We have to write the logic in pyDefaultDataTrnasform , which should be created under Child case type class.</strong></p><p><strong>.FirstName = pyWorkCover.FirstName.</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">8.How do you know the number of Child cases of a parent case?</span></strong></p><p><strong>We can look up the value of OOTB properties </strong></p><p><strong>pxCoveredCount 2</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">9.How do you know , how many child cases are open , under parent case? Which are yet to be resolved?</span></strong></p><p><strong>We can look up the value of OOTB properties </strong></p><p><strong>pxCoveredCountOpen </strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">10.How do you know weather all child cases are resolved or not?</span></strong></p><p><strong>We need to write when condition like</strong></p><p><strong>pxCoveredCountOpen = 0.</strong></p><p><strong></strong></p><p><strong>For this PRPC has OOTB when rule</strong></p><p><strong>“AllCoveredResolved”</strong></p><p><strong>[ATTACH=full]21[/ATTACH]</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">11.We want to stop the parent case to wait till all children gets resolved. On click of submit button in an assignment, PC has to check all children resolved or not? If resolved, should move forward else display a message on the screen.</span></strong></p><p><strong></strong></p><p><strong>A.In the post processing activity, use a precondition on method “Property-Set-Message” or “Page-Set-Messages” to display a message on page.</strong></p><p><strong>B.In the post processing activity, Call Validate rule using Obj-Validate Method.</strong></p><p><strong>C.In the validation tab of flow, we can call validate rule.</strong></p><p><strong>D.We can use “Decision Shape- Fork” and connect back to same step when pxCoveredCount !=0</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">12.We want to stop the parent case to wait till all children gets resolved, Parent case should be on wait.</span></strong></p><p><strong>We can make parent wait by using wait shape</strong></p><p>[ATTACH=full]22[/ATTACH]</p><p></p><p>[ATTACH=full]23[/ATTACH]</p><p></p><p><strong>Wait can be based on time, hard coded or Prop Reference.</strong></p><p><strong>OR</strong></p><p><strong>It can be dependent , case Status or Resolution.</strong></p><p></p><p></p><p>[ATTACH=full]24[/ATTACH]</p><p></p><p><strong><span style="color: rgb(226, 80, 65)">13.We have used a wait shape, where case got stuck , how to manually release this?</span></strong></p><p><strong>When case reaches wait shape, PC pushes that into a work queue, <a href="mailto:Deferred@pega.com">Deferred@pega.com</a></strong></p><p><strong>[ATTACH=full]25[/ATTACH]</strong></p><p><strong></strong></p><p><strong>To get access to the above work basket, we can add it to operators Work Group.</strong></p><p><strong>Or </strong></p><p><strong>we can add operators into Work Basket by updating it’s rule form</strong></p><p></p><p>[ATTACH=full]26[/ATTACH]</p><p><strong>DONE.</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">14.How to achieve || processing using Covers?</span></strong></p><p><strong>A.We need to choose the option “Do not lock parent, when the child is open”, under settings tab of “Child case types”.</strong></p><p><strong></strong></p><p><strong><span style="color: rgb(226, 80, 65)">15.Optimistic Locking--> Case has two assingments. Assingment1 routed to Work Queue WQ1.</span></strong></p><p><span style="color: rgb(226, 80, 65)"><strong>Op1, Op2 are part of WQ1.</strong></span></p><p><span style="color: rgb(226, 80, 65)"><strong>When the case is at Assignment1, Op1, Op2 opened the case and they are filling a form.</strong></span></p><p><span style="color: rgb(226, 80, 65)"><strong>Op1, submitted case and submit action is completed. Then Op2 has submitted the case.</strong></span></p><p><strong><span style="color: rgb(226, 80, 65)">The details submitted by Op1 will be Overridden by Op2 or not?</span></strong></p><p><strong>A.Op2 data will not be stored because the assignment is completed by OP1. Op2 will get a screen with refresh button.</strong></p></blockquote><p></p>
[QUOTE="AllJobsInfo, post: 6, member: 1"] [B][COLOR=rgb(226, 80, 65)]1.How to Access Parent case data at child cases?[/COLOR] A.At each child case, parent case data will be made available in the name of a system created page, pyWorkCover. pyWorkCover is a Copy of pyWorkPage of Parent Case. [COLOR=rgb(226, 80, 65)]2.You are writing an activity at Child case1, how to copy the data of Child case2?[/COLOR] A.We should open the childcase2 on a temp page and use it. [COLOR=rgb(226, 80, 65)]3.How to update Data from Parent to Child during Processing of Parent case?[/COLOR] A.We need to open the child case, on to temp page, update Parent case data to temp page, lock and Save it. B.PRPC has an OOTB flow shape for the same. “Update Case” [ATTACH type="full"]17[/ATTACH] [COLOR=rgb(226, 80, 65)]4). Where is the relation defined between parent and child cases? How do we know , the child cases of a parent?[/COLOR] [ATTACH type="full"]18[/ATTACH] Under pyWorkPage of Parent case, we have “pxCoveredInsKey”. Which will have all it’s child cases, pzInsKeys. This pxCoveredInsKeys is an OOTB value list property. Done. [COLOR=rgb(226, 80, 65)]5.Write an activity at Parent case and fetch child case data?[/COLOR] We can use Obj-Open-ByHandle and Open child case data. Loop through for each value in Valuelist and pass the pzIsnKey like below pyWorkPage.pxCoveredInsKeys(<CURRENT>) [COLOR=rgb(226, 80, 65)]6.We are designing child case1, write an activity to fetch other child case(s) data?[/COLOR] We can use Obj-Open-ByHandle and Open child case data. Loop through for each value in Valuelist and pass the pzIsnKey like below pyWorkCover.pxCoveredInsKeys(<CURRENT>) [ATTACH type="full"]19[/ATTACH] [COLOR=rgb(226, 80, 65)]7. How do we want to update data from parent to child at the time of a child case is getting created?[/COLOR] Two ways 1.Data Propagation : Copying data from parent to child ,while child is getting created. [ATTACH type="full"]20[/ATTACH] 2.We have to write the logic in pyDefaultDataTrnasform , which should be created under Child case type class. .FirstName = pyWorkCover.FirstName. [COLOR=rgb(226, 80, 65)]8.How do you know the number of Child cases of a parent case?[/COLOR] We can look up the value of OOTB properties pxCoveredCount 2 [COLOR=rgb(226, 80, 65)]9.How do you know , how many child cases are open , under parent case? Which are yet to be resolved?[/COLOR] We can look up the value of OOTB properties pxCoveredCountOpen [COLOR=rgb(226, 80, 65)]10.How do you know weather all child cases are resolved or not?[/COLOR] We need to write when condition like pxCoveredCountOpen = 0. For this PRPC has OOTB when rule “AllCoveredResolved” [ATTACH type="full"]21[/ATTACH] [COLOR=rgb(226, 80, 65)]11.We want to stop the parent case to wait till all children gets resolved. On click of submit button in an assignment, PC has to check all children resolved or not? If resolved, should move forward else display a message on the screen.[/COLOR] A.In the post processing activity, use a precondition on method “Property-Set-Message” or “Page-Set-Messages” to display a message on page. B.In the post processing activity, Call Validate rule using Obj-Validate Method. C.In the validation tab of flow, we can call validate rule. D.We can use “Decision Shape- Fork” and connect back to same step when pxCoveredCount !=0 [COLOR=rgb(226, 80, 65)]12.We want to stop the parent case to wait till all children gets resolved, Parent case should be on wait.[/COLOR] We can make parent wait by using wait shape[/B] [ATTACH type="full"]22[/ATTACH] [ATTACH type="full"]23[/ATTACH] [B]Wait can be based on time, hard coded or Prop Reference. OR It can be dependent , case Status or Resolution.[/B] [ATTACH type="full"]24[/ATTACH] [B][COLOR=rgb(226, 80, 65)]13.We have used a wait shape, where case got stuck , how to manually release this?[/COLOR] When case reaches wait shape, PC pushes that into a work queue, [email]Deferred@pega.com[/email] [ATTACH type="full"]25[/ATTACH] To get access to the above work basket, we can add it to operators Work Group. Or we can add operators into Work Basket by updating it’s rule form[/B] [ATTACH type="full"]26[/ATTACH] [B]DONE. [COLOR=rgb(226, 80, 65)]14.How to achieve || processing using Covers?[/COLOR] A.We need to choose the option “Do not lock parent, when the child is open”, under settings tab of “Child case types”. [COLOR=rgb(226, 80, 65)]15.Optimistic Locking--> Case has two assingments. Assingment1 routed to Work Queue WQ1.[/COLOR][/B] [COLOR=rgb(226, 80, 65)][B]Op1, Op2 are part of WQ1. When the case is at Assignment1, Op1, Op2 opened the case and they are filling a form. Op1, submitted case and submit action is completed. Then Op2 has submitted the case.[/B][/COLOR] [B][COLOR=rgb(226, 80, 65)]The details submitted by Op1 will be Overridden by Op2 or not?[/COLOR] A.Op2 data will not be stored because the assignment is completed by OP1. Op2 will get a screen with refresh button.[/B] [/QUOTE]
Verification
Post reply
Home
Forums
Pega Topic Wise Interview Questions and Answers
Pega - Case Type Covers ( Parent and Child Cases )
Pega - Case Type Covers ( Parent and Child Cases )
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