Case status on child case resolution
How to update case status automatically based on child case resolution?
***Edited by Moderator Marije to add Capability tags***
To see attachments, please log in.
How to update case status automatically based on child case resolution?
Hello @Satya K
you can create a Declare Trigger in the child case class to run when pyStatusWork changes to Resolved. In the trigger, call an Activity that opens the parent case using .pxCoverInsKey.
Check if all child cases are resolved, then update the parent’s status and save it.
Regards,
Mamatha Adiraju
Hello @Satya K
In the final stage or resolving Flow Action of the child case, configure a Post-processing Data Transform or Activity to update the parent case.
Use .pxCoverInsKey to open the parent case and check if pxCoveredCountOpen is 0, indicating all child cases are resolved. If true, set the parent’s .pyStatusWork to a resolved status such as Resolved-Completed, then perform an Obj-Save followed by a commit to persist the changes.
You can create a declare on-change with the watch property set on pxCoveredCountOpen. Add the when rule on the declare where you check the count of pxCoveredCountOpen to be 0. If its true then move the case to the resolve stage.
@Satya K you can leverage the Wait shape with case dependency. This way, you don't need to write any custom logic. Use the option "Wait for all child cases to be resolved", and once all child cases are resolved, the parent case will automatically resume the flow.
Depending on your specific status requirements, you can place the Wait shape appropriately in your flow design to control when the case should pause and resume.
In the parent case flow, add a Wait shape with case dependency, Use the option "Wait for all child cases to be resolved". When all child cases are resolved, the parent case will automatically resume the flow and you can set the status in parent flow upcoming stages/assignments
1) we can achieve using casedependancy
2) we can use UpdateStatus activity in the resolution stage of the child cases
Question Solved
Question Solved
Question
Question
Question
Question
Question
Question
Question Solved
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.