I have a requirement where I want to close all other threads in portal excluding the current thread.
Example:First case 1 is opened in worker portal.Then user opens case 2.
So while opening case 2 case 1 thread needs to be closed .That means only the current opened case on which user is working should be present in the clip board and other threads needs to be killed while opening the case2.
I implemented pega.desktop.closeAllDocuments() function api in begin button of assignment but then calling function to to open assignment.Now the problem is that it closes all threads but not able to open new thread and open the assignment.
I am looking for a way where the active thread doesnot get closed and all other threads of cases in background get closed.