Question

Switch clipboard Thread in work process

Hello,

I have 2 different interactions. And in the 2nd interaction I need to copy a property from pyWorkPage of the 1st interaction.

Is this possible to Access pyWorkPage of the 1st interaction? Because my current context is the Clipboard Thread of the 2nd interaction.

Thank you,

Rim

**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.

Correct Answer
December 24, 2015 - 2:32am

Hi Rim,

Are you aware of the other threan name > if so you can dirrectky access that using:

ThreadPg = tools.getThread().getRequestor().getThread("YourThreadName").getPage("testPage");

If you want to iterate all threads use following:

 

Set threads = tools.getThread().getRequestor().getThreadNames();

Iterator it = threads.iterator();

while (it.hasNext())

{

          String strThread = (String) it.next();

          PRThread thisThread = tools.getThread().getRequestor().getThread(strThread);

          System.out.println("**** thisThread ***"+thisThread.getName());

  }                 

 

Comments

Keep up to date on this post and subscribe to comments

Pega
December 24, 2015 - 2:32am

Hi Rim,

Are you aware of the other threan name > if so you can dirrectky access that using:

ThreadPg = tools.getThread().getRequestor().getThread("YourThreadName").getPage("testPage");

If you want to iterate all threads use following:

 

Set threads = tools.getThread().getRequestor().getThreadNames();

Iterator it = threads.iterator();

while (it.hasNext())

{

          String strThread = (String) it.next();

          PRThread thisThread = tools.getThread().getRequestor().getThread(strThread);

          System.out.println("**** thisThread ***"+thisThread.getName());

  }                 

 

Pega
December 25, 2015 - 3:54am

would having a editable requestor level data page works here?