Posted: 17 Aug 2017 6:08 EDT Last activity: 2 Apr 2018 2:30 EDT
Product Enhancement - Update a Case Smart Shape
I have a parent case and multiple child cases which get instantiated from the parent case using create cases smart shape. I add the "Update a Case" smart shape in the parent case flow in order to update all the child cases with some property value from the parent case.
I select "All child cases(and descendants)" in the smart shape and provide a Data Transform to execute.
Initially the child cases did not get updated and I had to debug the issue. I had to make the following changes for it to work:
1. The Data Transform even though is prompted from the Parent class , during execution it expects the Data Transform from the Child class. So I had to create the Data Transform in the Child case.
2. In the Data Transform I am forced to define "WorkObject" page for child class and "pyWorkPage" as the parent class.
Only then the functionality works.
I have attached some sample screenshots.
IMHO this requires some product enhancement as the smart shape should be more flexible and easily implementable.
Having written all this - Please let me know if I am wrong in my implementation.
Apologies for the delay in our response. We've gone ahead and submitted an enhancement request on our internal portal for the above requirement. The feedback ID is noted in the Related Support Case Number field in the original post above. Please contact your Pega Account Executive for next steps.
Actually I am trying to achieve same functionality in Pega 7.1.8, but its not working. I have created the data transform as mentioned by you, but in my case the Pega activity pzUpdateDescendants is not working as expected.
Thank you for posting your questions on the Product Support Community.
As you mentioned in the description, this is a duplicate thread for the question- Update a Case shape not working for All child cases option. To avoid confusion and to ensure the discussion continues on a single thread I’ll close thread: