Question
Pegasystems Inc.
IN
Last activity: 5 Feb 2020 0:40 EST
Update Parent Case Properties in Child case
Parent Case-type: Parent; Child Case-type: Child
I want to update a property name .SomeText (text) defined in Parent case from the Child case.
I used DataTransform defined in Child case as follows:
SET:: pyWorkCover.SomeText = "sometext"
After running above DataTransform successfully in one of the step pyWorkCover data as seen from the child case(clipboard) is updating, but when I go back to Parent Case when i look(clipboard) into same property in pyWorkPage it's not set.
Can anyone give me explanation? What will be the best method?
I refer to this:
but was not able to recreate it.
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 5 Feb 2020 8:22 EST
Pegasystems Inc.
IN
Yes, DT should be in OOO-DDD-Work layer. You can make use of pyWorkPage (If you have properties available in parent class context) or setting values to params or temporary clipboard page before invoking the activity to set the required properties on parent case. If required you can use bridge activity to copy all the data and invoke pzUpdateWrapper from there.
Pegasystems Inc.
FR
Hello,
Well if your Parent case was already opened you will need to refresh it to get the latest data. If not then you need to verify if a Commit has been executed.
Pegasystems Inc.
IN
Refreshing the Parent case is'nt updating the data in pyWorkPage of Parent Case. How should I verify whether a commit is being executed or not. Do I have to add another separate set of instructions for commit operation?
Pegasystems Inc.
IN
Hi,
You can use pzUpdateWrapper activity with mandatory fields case ID (Parent case Id), Data transform and isSingleCaseUpdate string literal values. Place the Data transform in the parent class and set the properties.
We have used it and it worked for us to copy data from child case to parent case.
Pegasystems Inc.
IN
Thanks for the reply
can u please elaborate on this;
from what i understood is:
Like pzUpdateWrapper will run in child case. and I shall set the id to pxCoverInsKey But the part i am confused is
how will refer the properties in Data transform (DT)? The DT should be then mandatorily of class OOO-DDD-Work and not of the class OOO-DDD-Work-Parent
Can u confirm the above.
Accepted Solution
Updated: 5 Feb 2020 8:22 EST
Pegasystems Inc.
IN
Yes, DT should be in OOO-DDD-Work layer. You can make use of pyWorkPage (If you have properties available in parent class context) or setting values to params or temporary clipboard page before invoking the activity to set the required properties on parent case. If required you can use bridge activity to copy all the data and invoke pzUpdateWrapper from there.
Pegasystems Inc.
IN
Maybe you can try using Update Case smart shape in ur child flow and refer the DT which will set the parent case properties.For me this approach worked well .
Updated: 5 Feb 2020 0:40 EST
Pegasystems Inc.
IN
Thanks @amana and @jangk for your reply, I was able to update the parent case using Update case smart shape. Both the way are almost similar and works fine.