Discussion
Can Cover and Covered belongs to same class?
Hi,
I have a requirement where i have to create cover and covered objects which are belongs to same class.
Luckily i could save the casetype rule when i have added the same class as covered.
But in the runtime the covered work object is not getting created.
I have a page structure like this
p1-(Of class abc-def-work-p1)
c1 (of class abc-def-work-c1)
c2(of class abc-def-work-c1)
I am using the pyCreateSubcase to iterate on a embeded page and create the cases for p items and c items.
Note:Why am using the same class is, i have the components to nth level like c1,c2,c3,c4.....cn.So want to use same class
c1
c2
c3
.
.
cn
Is there any way to achieve this requirement
Thanks,
Raviteja
Hi,
You are talking about case type ans suddenly embedded pages.
A subcase "C" will not appear as an embedded page of "P"
An embedded page will only be created when you use it so the loop will stop quickly.
Using the flow pyCreateSubcase sounds a good plan to me but looping on embedded page won't work as a subcase is not embeded in a parent case.
Plus, be carefull of a possible infinite loop here, create n levels of class like this mean you have a limit at instantiation time or you create sub classes on the fly when needed.
Damien
Pega Academy Support Team