So, I have a Top case A, which can create child cases B and C. Case B can also create child case C.
At some point I have case A-1 with child cases B-1 and C-1, given that B-1 also have a child case C-2. Something like the image I have attached.
I'm trying to make a wait shape to wait only for child cases C directly related to A. In the example, I need to wait only for C-1. So I can finish C-2 without triggering the wait shape. Is there a way I can do this?
Thanks in advance.
***Edited by Moderator: Pallavi to update platform capability tags***
I presume your preferred configuration is a Wait Shape on A configured to be dependent on cases of type C becoming resolved, and that you have asked the question because you are finding C-2 becoming resolved is enough to satisfy the dependency of the Wait Shape in A ... and you'd rather it only happened for C-1?
If it was me, I'd have a look at the Tracer when you resolve C-2 to see what rules are invoked to perform the dependency checking. From memory, it is all orchestrated by Declare On Change rules that are firing when there are status changes on cases, which then go looking for other cases in the current case hierarchy that may be interested in that status change.
You may find that there are extension points that you can extend on Class C which can influence how the case dependency is evaluated for cases of type C. Look for rules in the Tracer - When rules in particular - that start with 'py' that are rule-resolved from Work- or Work-Cover- and there are potentially opportunities for you to implement your own specialization. That is, only allow dependencies on C to be evaluated if the class of my parent case is of type A.
If you can't find an extension point, you will likely need to use a Workbasket assignment instead of your Wait shape, and implement your own Declare On Change to implement the dependency-like behavior you need, orchestrating an invocation of ResumeFlow on the workbasket assignment when your dependency condition is met.