I have created parent case and one child case.Congiured child case in second stage of parent case.In parent case data propagation I have configured one property value (say 'x' value in child case copied from parent case property value). Am also confiugured the same property 'x' value (to some constant value) through pyDefault.Now I run parent case ,after seond stage execution and child case instantiation which value present in 'x' property of child case ?(either the value which is copied from parent case or constant value) and why?
***Updated by moderator: Lochan to update Categories***
Thanks for writing to PSC. Please find the details for your query as below:
When you want to transfer data from parent case to child case, we can use the Data Propagation option to set the values in the subcase(s). The Data Propagation option can be found on the Details tab of the Case Designer. To propagate data from the parent case to the subcase, we click the edit link next to Data Propagation, to open “Case Designer: Data Propagation” dialog box.
If we are simply taking the data without making any changes, we can use the data propagation option. We do not have to select “Also apply Data Transform.” If we are using the data conditionally or looping through a page list or if we need to reuse propagating data from parent to the subcase, we can use the “Also apply Data Transform,” option as well.
If the data from the parent case changes after the data has been propagated to the subcase during the instantiation of the subcase, the data change is not reflected in the subcase. If the latest value of a property of the parent case is needed, then we use a data transform rule to get the value just before the processing of step/flow/shape of the subcase.
As per your example what ever initial value X have in parent case is propogated to child case. To update the value of X with latest modification happened, you have to use "Data transform rule".
Thank you for your answer .Your answer was correct ,but that is not my requirement . Am talking about child case value (either from Data propagation or child case pyDeafult Data transform).Please find attachement so that You will get better idea.
When child case is instantiated the value which was set in pyDefault DT will be assigned to X. But after that DataPropagation activity will be executed. Hence the final value will be from the value which is set in Data Propagation.
In your Scenario, you are Using Create Case Smart shape at parent stage step2 to create the child case, the process of execution of rules to create the child case are, first the smart shape calls pzCreateCase activity--->it calls pxAddChildWork activity--->it internally calls CreateWorkPage in Java step.
So while creating the child Work page, it calls the pyDefault Data transform of the child case, so first pyDefault rule will be executed. After CreateWorkPage Activity--->AddCoveredWork Activity will be exceuted, in this activity it internally calls pzPropagateProperties activity to Propagate the Properties from Parent to Child.
So by looking at the order of execution of rules, pyDefault will be executed first than the pzPropagateProperties Activity while creating the Child case,
So thats why the final value will be from the value which is set in Data Propagation. It simply overides the Value which is set in pyDefault Data transform rule.
I think the child case property has the value which was set at the pydefault data transform because when we will go to the child case the data propagation activity will automatically propagates the data to the data but it is also having the data transform which we are setting the value.
First the data propagation will load then automatically the data transform will over ride it.