Question
Virtusa
IN
Last activity: 1 Nov 2018 10:04 EDT
Open Work Item in Current Thread
Using OpenWorkByHandle opens work object in a New Document. Is there any API function which will open the work object in the current thread (Replacing the current harness) instead of New Document.
***Updated by moderator: Lochan to update platform capability***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
CollabPartnerz
IN
Can you try using replace current ?
Virtusa
IN
Hi Gayatri,
OpenWorkbyHandle doesn't take any parameters except the work object ID. Is there any API method to open work item in the current harness(replace current)?
Pegasystems Inc.
FR
Hello,
Do you mind stepping back to explain your exact requirement please? I'm not really getting why you have to work this way.
Virtusa
IN
Hi MarcLasserre,
Below is the high level requirement.
A work object is opened. A couple of button actions calls a script which in turn calls pega.d.showharness with replaceCurrent as Yes which replaces the work object thread. On click of a particular button in the newly displayed harness, OpenWorkByHandle is called to open the work object. At this time, a new thread is being opened for work object leaving the thread opened previously by pega.d.showharness in background (We are not displaying tabs in work area). Since the maximum document count in the Dynamic container is 16, after a few work objects being processed no more work objects will be allowed to open.
-
Marissa Rogers Kayla Metivier Miki Muzsi Mary Carbonara Geetha Madhuri Surisetty
Pegasystems Inc.
FR
Right,
Just to get the full picture what Pega version are you running?
Virtusa
IN
We are using Pega 7.1.7.
Thanks,
Teja
Pegasystems Inc.
FR
What I'm not getting is, why do you have to do all that manually where it seems to be all automatic when using pyCaseManager7 portal.
I believe if you open up this Out-Of-The-Box portal, you will not see any tabs handling WorkObjects. When you open a WorkObject it will appear on the main window above the previous one remaining open behind.
And as you said if you reach the limitation by opening more than 17 cases the system will automatically close the first one open on the list. So again all automatic and Out-Of-The-Box. Nothing to customize here.
-
Grant Thompson
Virtusa
IN
Hi MarcLasserre,
Yes. There will be no tabs. Other than the work object threads, we have few threads which are being left open due to pega.d.showharness call. And after the limit of 16 is reached, system is not closing the oldest thread. Instead it is giving a popup alert which says max limit of open documents is reached and to close the previous ones.
Pegasystems Inc.
FR
All right then,
This is where you need to investigate what is actually different from your custom portal to the OOTB one. I will try to have a look on side as well.
Virtusa
IN
Pega is only closing the work object threads after the Max Document count is reached by calling the pzDocumentCleanup. Since in our custom implementation it is the normal harness being left open, those are not taken care by Pega OOTB activity. We suggested to business for re-design. As a work around, we are looping through the Declare_pyDisplay page to identify the Thread name and closing the unwanted thread.