Question

Making a child case temporary from pyDefault of the child case

Hi,

I have a scenario, where we have a case type which can be created as a child case and also can be created as a stand alone case.

If it is a child case, we should be making this child case not temporary. If it is created as Standalone it should be a temporary case which in further progression of the case will be persisted.

Case Structure:

Case1

->Case2

Case 2 can be created as child from Case1 and also Case 2 can be created as a standalone. If case2 is child it should not be temporary, If case 2 is standalone then it should be temporary.

We tried circumstancing the pyStartCase of the Case2 casetype, but the same base rule is getting picked, instead of the circumstanced rule even if the property we have used in the condition has the value which would evaluate it to true.

Comments

Keep up to date on this post and subscribe to comments

October 2, 2019 - 9:44am

Hello,

Can we check how the rule has been circumstanced. What Pega version are you running?

Pega
October 9, 2019 - 4:33am
Response to MarcLasserre_GCS

Hi, 

I am using Pega 8.2.2

Pega
October 9, 2019 - 8:54am

Can you give a try to set @baseclass.pyTemporaryObject to True in pyDefault Data Transform of CHILD Case type it can be set if Parents CoverID does not exists ?? 

October 10, 2019 - 4:26pm

Hi,

you  can always create case2 as temporary case and persist the case conditionally using persist smart shape.

Thanks,

Deva