Question
Pegasystems Inc.
IN
Last activity: 24 Sep 2024 6:21 EDT
Commit not triggered for last child case if parent has wait shape configured with case dependency
I have a parent case A and two child cases B1 and B2. Parent case has wait shape configured with case dependency on child cases to be resolved.
Whenever each child case resolves, it updates a DB table with some records. For the first case B1, it works fine as PRPC triggers a commit after B1 resolves and updates the table.
But when B2 resolves and updates the table, PRPC does not trigger a commit and instead in the same requestor session the parent case A's wait shape is triggered and progresses the flow which is impacting the further processing as data pertaining to B2 is not yet saved to the table.
In summary, PRPC is not triggering commit after the last child case is resolved.
Is there any way to achieve this without using write now or explicit commits?