Question

7
Replies
223
Views
CloeW938 Member since 2018 143 posts
IT Solution Service
Posted: April 20, 2020
Last activity: 1 week ago

How to copy page specific data to Sub case using Data Propagation

Hi,

I want to create multiple child cases based on page list that is defined in ParentCase class and that points to product data class.The goal is to copy a set of product data from parent to child when child cases are instantiated. I want to do this using Data Propagation, instead of Data Transform in a create case shape.

Class structure:

MyCo-MyApp-Work-ParentCase

  • ProductList (MyCo-MyApp-Data-Product) => Page List property

MyCo-MyApp-Work-ChildCase

  • ProductID => Text property
  • ProductName => Text property

MyCo-MyApp-Data-Product

  • ID => Text property
  • Name => Text property

 

For example if I have below data populated in ProductList in parent case:

<P-1>

ProductList:

 IDName
1004Pencil
2009Eraser

Then I want to have two cases with below data when instantiated:

<C-1>

ProductID: 004

ProductName: Pencil

<C-2>

ProductID: 009

ProductName: Eraser

 

I am trying to do this by using Data Propagation but it is not working. To map fixed property to fixed property works fine but I am unable to figure out how to set dynamically individual data in each page list to child case.

I would like to do something like .ProductList(<CURRENT>).ID to .ID if possible.

Data Propagation

Obviously I can't use <CURRENT> keyword here. How can I do this?

 

Thanks,

 

 

 

***Edited by Moderator Marissa to update Platform Capability tags****

Pega Platform 8.4 Case Management
Share this page LinkedIn