Theme Cosmos UI showing finished assignment at the top of Confirm harness in Split for Each subprocess

We are using Split for Each to route case to three different managers for approval (the ApprovalFlow). The pxFlow PageGroup contains three instances of the same flow (ApprovalFlow, ApprovalFlow_1 and ApprovalFlow_2). Once a manager approves the case, the assignment is deleted from the assign-workbasket table, however, the pxFlow still shows all three flow instances. The flow that was just completed (ApprovalFlow) does not have any assignment information as the assignment was just completed and assignment was removed from the assignment table. The other flows (ApprovalFlow_1 and ApprovalFlow_2) contain all the information about flow and assignments.

I think, because the completed flow is still in the pxFlow Page Group, it causes UI to show a section where user can hit “Go” button and finish the flow.

The above section is not supposed to show as there is no assignment available to work on. Upon refreshing the case, this section goes away.

Looking for ideas as to how to resolve this.

By the way, I have also disabled the “Look for an assignment to perform” in corresponding flow action rule.

@NadeemM8116 - Need to add refresh strategy on the to do widget section(pyAssignmentListFlat). Add refresh conditions on the layouts as mentioned in the below article for getting the widget automatically reflected with latest data instead of doing it manually.

Thank you.

Hi @Priyanka Boga

Thanks for your response. I added the refresh condition on pyAssignmentListFlat but it did not work. I also updated same refresh condition in the parent section pxAssignmentView but it did not work too. Do you suggest I should open a support ticket with Pega?

Regards

Nadeem

@NadeemM8116 - Sorry , Can you try once adding the same strategy in pyCaseMainInner section?

Also can you please share what conditions are used.

Thank you.

@NadeemM8116 - I think as we have still the data in clipboard that is why the refresh strategy is not working. Can we explicitly remove the pages in order to fetch the pages again freshly with correct ones on load?

Thank you.

@Priyanka Boga

Thanks for your quick response.

How do you suggest I remove the page(s) explicitly? Do you want me to do it in Post Processing activity? Also I am not sure which page you want me to remove? I am assuming it is pxFlow(ApprovalFlow) page.

I also unchecked this checkbox thinking that this will force system to not look for any assignment, but this didn’t work either.

My understanding is that once the assignments are deleted from Assignment table (which they are) the clipboard should be updated with current case information. Btw as soon as I click on Refresh link on the left Case Summary panel, the clipboard is updated and as a result the To Do list becomes invisible.

Regards

Nadeem

Hi @Priyanka Boga ,

Thanks for your quick response.

I did add the same strategy in pyCaseMainInner but it didn’t work. The refresh condition I am using is

.pxUpdateDateTime Changes || .pxSaveDateTime Changes

I still see To Do section on UI

Please note that the completed approval flow still shows on clipboard as shown below.

And this is how the pxFlow page for approval flow that has not been completed yet shows on clipboard.

Regards

Nadeem

@NadeemM8116 -

  • Open section pyAssignmentListFlat and we have repeating dynamic layout(RDL)

  • Open the configurations of RDL and enable “Defer load contents”

  • Enable “Specify pre-loading activity”

  • Create an activity and add below steps

  1. Page-Remove ( remove D_CaseAssignments data page)
  2. Load-DataPage ( Add D_CaseAssignments)

The above activity will refresh the data page which is sourced to RDL to get the latest data.

Thank you.