Posted: 20 Jan 2020 7:07 EST Last activity: 5 Feb 2020 0:39 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?
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?
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.
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.