How to Auto Refresh Harness

Hi All,

I have this requirement to change the status when I click the “Begin” button of the assignment.

The scenario is like this, before I click the “Begin” button, the status is “Pending” and once I click begin the status should be “Review”.

Now, when I click the “Begin” button the status still in “Pending” but when I check the clipboard the status is already in “Review”.

So I tried to click the “Refresh” option from the actions tab and the status change to “Review”.

With these, I want to refresh the harness automatically when I click the “Begin” button so the status will also change automatically.

I did try to call the “RefreshOnConflicts” OOTB activity from Pre-DT in the flow action, but it is not working.

Can someone help me please?

Thank you :slight_smile:

@JubelynMaeC17092380

On click of the begin button call refresh Harness from button actions, inside call your activity/Datatransform to change the status.

@JubelynMaeC17092380 you can use the Refresh-Current-Harness method in an activity. Configure the Flow Action’s Post-Processing to call a custom activity where you first update the status using Property-Set and then call Refresh-Current-Harness

Hi @JubelynMaeC17092380 ,

“If your application is built on theme-cosmos that is section based UI , you can add actions and events to button configurations. ‘onClick’ event can refresh a section, which will also update the status.”

Regards,

Mohd Qizer Uddin

@JubelynMaeC17092380

What I can understand from your problem is that the Clipboard is holding the updated value but the UI is still showing the previous or the stale status. This is bound to happen for server side actions without proper section or harness refresh.

If the UI has to be refreshed automatically based on the latest values from the Server for certain property / pagelist. You could explore the possibility of Refresh on property changes options that is available handy in dynamic layout and other embedded section configurations. This configuration use the tracking mechanism and does the needful.

Let us know how it goes.