This was asked in an interview, we have a parent case and its having 2 child cases, so when the first child case has status as Pending review, I want to call an activity in context to parent case how to do it.
@TanyaS58 Can we have a declare onchange(pyStatusWork) on the child case and I guess the parent case can be accessed via pyWorkCover page.
Hi @TanyaS58,
You can use the “Wait” shape in the parent case to wait for the first child case to reach the “Pending review” status. Once the child case reaches this status, you can use the Utility shape to call activity in the context of the parent case.
Here are the steps to achieve this:
-
In the parent case, add a “Wait” shape after the creation of the child cases.
-
Configure the “Wait” shape to wait for the first child case to reach the “Pending review” status.
-
After the “Wait” shape, add a “Utility” shape to call the activity in the context of the parent case.
-
In the “Utility” shape, specify the activity to be called and the context of the parent case.
By doing this, the activity will be called in the context of the parent case when the first child case reaches the “Pending review” status.
Regards,
Mohd Qizer Uddin
@Mohd Qizer Uddin That should work I believe.