Wait for Dynamically Created Sub Cases of Different Type to Resolve
We are creating sub cases dynamically using the "Create Cases" flow shape.
The sub cases are of different sub classes from the class of the parent case.
They are created from a page list. Example: subCasesList.pxResults. Here, the pxResults pages will be of different classes.
The number of each of the cases created will vary.
The parent case needs to wait in the current step until all of the sub cases are resolved. Once all of the subcases are resolved, the case should move to the next stage/step.
1. Included consecutive Wait shapes for each type of case. - Flow did not progress.
2. Tried including conditions to skip Wait shapes if type of case is not available. We did this by checking if the page list has pxResults pages with pxObjClass of the case type. - Flow always followed the ELSE path and immediately moved to the next stage.
How can this be done? Is it possible to do it without creating individual wait shapes for each sub case?
You can have the"AllCoveredResolved" ticket on the parent flow assignment shape where you want to resume. Once all the children are resolved, the parent flow resumes from this assignment. Please let me know if this solves your problem.
You should route the parent case to a waiting work basket and have this ticket in another shape in the same flow. It works. When any child is resolved,updatestatus activity checks the parent if all its children are resolved. If yes, this ticket will be set on the parent flow.
I tried it again. It works. The case waits till all the sub cases are resolved.
The issue is, while waiting, a link is displayed in the Case Contents area. Once clicking on this link, it opens up a sections displaying a button that provides an option to continue the flow if needed.
When we use the Wait shape this does not happen. Is there a way to do the same using the wait shape?
If no other way, we might have to think of customizing the section that displays the progress button i guess.
You are right. This way, you will have access to proceed the case further. For that, customizing the pyAssignmentListGadget section will help. Or, an accessWhen rule in the class will also works. Thanks!
This scenario is checking all child cases, I have a requirement where Parent case contains different class child cases and I need to check only particular child case to be resolved to close parent case. I tried wait shape but for this is routing to WB to wait. But I need to stop Parent case for the particular class child case without routing the assignment.
Could you please provide me the possible approach for this scenario.
In Action tab of the flowaction you can check Hide the default action section buttons which will not allow the user to proceed further, i.e. if you route the case to any work basket and select check box would benefit un-necessary actions performed by the user even acidentally opening the case from basket
if you dont want to hide the submit button from flow action as well, route the work item or case to workbasket where none of the user have access to pull the case from this workbasket. You can give access to administrator only.