Akash Member since 2017 12 posts
Posted: April 1, 2018
Last activity: April 3, 2018

Update a Case shape not working for All child cases option

Hi all,

We are developing an online exam application for POC purpose in Pega 7.1.8.

There is a parent Exam case which has Test case as a child case.

Exam case starter flow is a simple flow as below. On the first connector a data transform is called which populates the embedded pagelist SelectedSubjects on pyWorkPage. After this there is a Create Cases shape, where multiple child cases are created(One 'Test' case for each item in SelectedSubjects'. After child cases are created there is an assignment shape.

After the assignment shape there is a 'Update a Case' shape. This shape has 'All childs' radio button selected and a data transform CopyToTests is called. The CopyToTests data transform is in Test class and for demo purpose I am just copying the pyID of exam case to pyNote property.

What we found is at runtime the data transform CopyToTests is not called at all. What I found is ‘Update a Case’ shape calls activity pzUpdateWrapper which calls another activity ‘pzUpdateDescendants’ as it is not a SingleCaseUpdate.

The pzUpdateDescendants activity calls activity pyLoadMyCasesNested on step 5 with TempPage as a param. This Temp Page is populated pzUpdateWrapper in step 5. Only pxCoveredCount and pzInskey are populated on it. There is no other data like pxCoveredInsKey etc. getting copied. Due to this the activity pyLoadMyCasesNested is not able to fetch the covered cases.

As there are no covered cases Step 6 of activity pzUpdateDescendants’ is not called. This step is actually a loop on primary.pxResults

If we select 'Single Case' instead of 'All Child cases' the functionality works as expected.

Please see the attached document for details with screenshot. Any help is much appreciated.

Low-Code App Development Case Management Data Integration
Moderation Team has archived post
Share this page LinkedIn