Auto retry of GetNextWork

Hi All,

We have a requirement to automatically retry the get next work option (Instead of user clicks) when the user does not get any case after performing get next work manually. In this scenario, we display a harness that includes a message that No Assignments are available. In order to solve this, We tried adding a java script in this section which uses SetTimeout function for auto reload. But with this we are facing issues as the script keeps on running even if the user traverses to dashboard (Thread names are same for harness and dashboard).

Any other better ways to solve this requirement? Appreciate your help

***Edited by Moderator: Lochan to update platform capability tags***


Keep up to date on this post and subscribe to comments

August 20, 2019 - 11:48am

August 20, 2019 - 12:01pm
Response to MarcLasserre_GCS

Hi, thanks for the response.

Our requirement is to systematically perform getnextwork on behalf of user (Without user interaction) until system finds a case for the user. 

August 21, 2019 - 5:28am

Yes settimeout script will keep on running.
However you can control the action you've put in the function (I assume you are refreshing the section) to not execute the action upon meeting certain conditions.

August 21, 2019 - 9:40am
Response to MAHI302446

Thanks for the response. In this approach, we tried to uniquely identify the threads and added a condition if the active thread is equal to the thread name of the harness which executes the script, we are running the script. But it looks like the thread name of the harness  is matching with the thread name of the screen from which user invoked the GNW option (Dashboard etc). Is there any other alternatives?