We have observed that DX API v2 allows the creation of a child case even when the parent case is in the Resolved-Completed status. Is there an out-of-the-box way or recommended approach to restrict child case creation once the parent case has been resolved? Any guidance would be appreciated. Pega version 25.1
I can think of two options
Option 1 Before calling the DX API to create the child case, invoke GET /cases/{ParentCaseID} and verify the parent case status. If pyStatusWork starts with Resolved-, do not invoke the child case creation API and display an appropriate message to the user.
Option 2 β Implement a validation rule in the child Case Type that checks the parent case status. If the parent status starts with Resolved-, add a validation message and prevent child case creation.