From Child case resolving Parent case the parent moves to resolution But pyStatuswork is not updating

We have an Agent that runs and resolves the Child Case ,from the child case we call a ResumeFlow activity which resumes the Parent case to complete the stage and resolves the Parent case.

After the Resumeflow, the parent case moves to Resolution which is Expected and we see Audit print “Status Changed to Resolved Completed” in the Audit.

But, the pyStatusWork doesn’t get updated, it remains the same. In the Parent case Resolution Stage, we have selected the “Resolve the Case” option.

@SubramanyaS2564

Did you set the status work on the case lifecyle when you selected the resolve option? Do you see anything in logs?

@SubramanyaS2564

So if you are performing any changes from child in parent , Parent case will be resaved everytime the child case is resolved , there is few properties that gets updated in pyworkpage of parent case .

Did you do the obj-open and the call this resumeflowactivity and also you should do obj-save.

Can you check this configuration.

@pichnThank you for the Information.

In the resolution Stage of the child case, we are calling an activity where we resolve the case, and we open the Parent case using Obj-Refresh-And-Lock and call the resumeflow activity to move to the resolution stage.

Here we can see the parent case being moved to Resolution, but the pyStatuswork is not getting updated.

In the parent case, the resolution Stage is set as Attached.

@SubramanyaS2564

One quick suggestion, i am not completely aware of the use case but. This scenarios can be handled like this

Have a wait shape in parent case flow after the create case(Child case), You can configure the dependency on child cases like how many child cases has to be resolved to make the parent case move forward. If this approach is followed no need of handling the logic in child case.

The above approach is the best way to implement this type of scenarios , for some reason if you are unable to adopt it, Try

Updatestatus Activity in resolution stage and pass Resolved-Completed as a status and check.

And also Obj-Refresh and lock will discard all the changes done in any Previous requestor and releases the lock and acquires the lock in current requestor ,You can also try obj-open and obj -save.

@SohamM95 I have set the status in Case Life Cycle(Refer the Attach) and I didn’t see any logs, for testing purpose we have set logs before the step and after the step of resumeflow activity, We can see the resumeflow getting successful and with the expected outcome but when it goes to parent case, pystatuswork is not updating but in Audit we can the message “Status Changed to Resolved-completed”.

@SubramanyaS2564

I do not see anything attached, but if what you’re saying is true then you need to trace and see where the pyStatusWork is changing after being Resolved-Completed.