Update Parent Case Properties when Child Case Properties Change
I'm trying update properties on a parent case when child cases are updated. I am trying to implement the strategy recommended in a post I found here but am having problems understanding the second step of the post.
I'm using the 'Update a Case' smart shape in my child case process flow. Configuration is my issue here. I am using .pxCoverInsKey as the "With ID" field and a data transform I added to the parent (as described in the post). The part I'm struggling with is the instruction to "Data transform: Created in Parent class mapping child/current pyWorkPage property value to parent context.". I mapped "pyWorkPage" to the parent class and am referencing like so: "pyWorkCover.UpdateWhitePaperStatus". However this still isn't working.
Can anyone explain this process further, perhaps with an example or screen shots?
Create DT in child class and in run time pega will open the case using ID . To refer child case data you need to use pyWorkPage and primary will be parentcase(cover). No need to use pyWorkCover anyware. We have used this Shape and code for grand child aswell.
Thank you. This helped me resolve the issue. I didn't understand that the process was running the parent DT from the child and referring to pyWorkPage would be referring to the child case's work page. I mapped the pyWorkPage to the child class in the parent DT and this worked.