Question

How to flush/Remove thread from clipboard

I have a requirement where I have to flush/remove the thread from clipboard based on some conditions. Searched for same in PSC!

We are doing Open assignment on click of Case ID, if I close this case and open the new clipboard is not getting refresh/flushed/removed for previous case ID. Hence we are facing issue while showing values in UI.

Note: I tried with RemoveThread OOTB, it didn't work.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
December 28, 2017 - 9:25am

Hi Gayathri,

Thanks for posting on PSC.

If I understand reported behaviour correctly, data isn't getting removed after closing the case. Thus, when you're doing Open Assignment on click of Case ID, its loading stale data.

You can configure an activity with "Page-Remove" method for that particular page.

Pega
December 28, 2017 - 9:27am

Please provide more description, 

Is it occurring when a case is closed using OOTB buttons? Or How you've configured.

Share the design screen-shot.

January 3, 2018 - 5:31am
Response to Asif Hasan

Hi All, 

Thank you on the suggestions!

Exact senario:

1. We have saved pycaseworker portal to our copy.

2. Providing link in My Work to do Open Assignment.

3. On first click in the portal, Case is opening and a thread is available in clipboard.

4. After performing some tasks here, I am again clicking on My Work on left side. - Case is closed, My Work report is showed, but case thread is still available in clipboard(expected! as same is happening in pycaseworker portal as well)

5. When I click on 2nd case ID in my work, Case is getting opened in front end. But thread isn't getting refresh in clipboard! 

 

Hopefully this explains the issue

Pega
March 29, 2018 - 5:48am
Response to GayathriPR

It's standard practice to use "Page-Remove" method at the end of the activity after processing.

I hope you're manipulation or loading data for a case through an activity. I would suggest not to directly update the page which is used in the UI, rather you could use the "Page-Copy" method and create a new page with the case data and refer it in the UI. Make sure you, remove the page which was used for manipulation/update/loading, consider it as a temporary page to work.

To remove a page in an activity or Data Transform. 

Configure it with Remove/Page-Remove methods.

Hope it answers your query, kindly notify if it does by marking this post as answered for larger Pega audience.

Regards,

Asif

Pega
December 28, 2017 - 10:09am

which kind of page is that, please share some more info, data page or some other user page, 

looks more of the configuration issue, also what is this remove thread rule?  I could see cpmremovethread activity in my local 7.2.1 instance.

January 3, 2018 - 5:30am
Response to NehaMittal

Hi All, 

Thank you on the suggestions!

Exact senario:

1. We have saved pycaseworker portal to our copy.

2. Providing link in My Work to do Open Assignment.

3. On first click in the portal, Case is opening and a thread is available in clipboard.

4. After performing some tasks here, I am again clicking on My Work on left side. - Case is closed, My Work report is showed, but case thread is still available in clipboard(expected! as same is happening in pycaseworker portal as well)

5. When I click on 2nd case ID in my work, Case is getting opened in front end. But thread isn't getting refresh in clipboard! 

 

Hopefully this explains the issue