Hello, I've got a simple flow that create subcase and then waits untill it reach status "Resolved-Complete". My colleges already used this pattern in project and it worked fine, but when i used it, process always stuck on wait shape despite subprocess reached resolved-complete status. I've looked throw forums and find out that by creating wait shape with case dependancy, PRPC create Declare Trigger in depended class. But in my case when I configure wait shape this rule doesnt appear. What am I doing wong?
You could create the declare trigger in the activator class(sub case class). The name of the trigger could be anything. Configure "pxCheckFlowDependencies" as the trigger activity when instance is "Saved and" ".pyStatusWork" property is modified. Refer to PegaSample-Investigation. pyNotifyDependents trigger rule.
I had a similar issue a few weeks ago. The issue was that the child case did not contain any assignment which caused some locking issue preventing the parent to get the status change to Resolved-Completed. I can say more if needed.
Yes. The problem was that the parent case was open on screen (thus locked) when the child tried to do the status change, and since the status change did not occur after any assignment, the locking just failed with no retry.
We had some help from a Pegasystems consultant IRL. He suggested that we use an SLA to do the status change, so it would be executed by the agent which would handle locking properly (with retry). A bit dirty a workaround to my eyes, but he said it was better than just manipulating locking directly. Anyway the app on which we had this issue was only a small experiment so we didn't develop it further.