Reopening Child Case In Pega
Hi All,
In this blog we will see how to reopen child cases.
First we need to create activity
Step 1: Create activity
CL = Work-
ID = ReopenChildCases
Step 2: Define Pages & Classes
D_SavableBooking C-C-Art-Work-CA-Booking
ChildPg = C-C-Art-Work-CA-Booking
Step 3: Define Parameters
Key String
Step 3: Define Steps for activity
1) When Param.Key!="" if true = Continue Whens if false = Exit Activity
Obj-Browse
PageName = CAChildPg
ObjClass = C-C-Art-Work-CA-Booking
MaxRecords = 500
UseLightWeightList = checked
Logic = A
A {checked} .pxCoverInsKey Is Equal Param.Key
{checked} .pyID Value Only
2) Loop = For each embedded page
Property-Set CAChildPg.pxResults
Param.ChildCaseID = .pyID
2.1) Obj-Open ChildPg {StepPage}
Open Class = C-C-Art-Work-CA-Booking
Lock = checked
ReleaseOnCommit = checked
.pyID = Param.ChildCaseID
Jump
When = StepStatusGood if true = Continue Whens if false = Jump to Later Step E
2.2) call reopenWorkObject ChildPg
flowName = pzInternalCaseFlow
OutputPageName = pyOutput
2.3) Call UpdateStatus ChildPg
StatusWork = Active
2.4) Property-Set ChildPg
.CAAssignment = "Unassigned"
.ArhivedDate = ""
.ReasonForNonRenewal = ""
.BookingStatus = "Active"
.CurrentPhase = "Onboarding"
2.5) Call Save ChildPg
Jump
When = StepStatusGood if true = Continue Whens if false = Jump to Later Step E
2.6) call commitWithErrorHandling ChildPg
2.7) Label = E
Page-Remove D_SavableBooking[pyID:Param.ChildCaseID]
ChildPg
3) Page-Remove
CAMChildPg
Thank you!! Will see you all in next blog post 😊.
Comments
Post a Comment