Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Thread-Clear method

Updated on August 16, 2022

Use this method to clear the Thread pages for your current session, except for any pages specified in the KeepPages parameter.

Parameters

The Thread-Clear method has a single fixed parameter and an array parameter.

ParameterDescription
EmptyTaskLists Optional. To clear the three activity lists (Activity, Worklist, and Current), set this parameter to Y. If blank, the lists are not cleared.
KeepPagesOptional. Enter any page names to retain.

Results

If the EmptyTaskLists parameter is selected, all three activity lists are cleared.

Thread pages are deleted, except the pxThread page and those pages listed explicitly in the second parameter array.

After this method deletes the pages, it continues with the next activity step.

Checking the method status

This method updates the pxMethodStatus property only if it fails. See How to test method results using a transition.

Methods and instructions by function

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us