Question

Display harness in a new thread

Hi,

We have a custom harness that gets displayed when user does not have cases to work on when he/she does Getnextwork. We are using UIActionDisplayHarness to display the harness. But whenever this harness is displayed, we see that the thread name of the harness is same as the dashboard. How do we display a harness in a new thread? .

***Edited by Moderator Marissa to update platform capability tags****

Correct Answer
August 21, 2019 - 2:19pm

RedirectAndRun gets you into a new thread context, but you have to tell it what you want to do once you are there. I think you will need to call your own activity that does something like Show-Harness to define what harness to show, etc.

Thanks,
Mike

Comments

Keep up to date on this post and subscribe to comments

August 20, 2019 - 12:12pm

Hello,

Have you tried calling the out of the box activity RedirectAndRun to call the harness in a new thread? I think that is probably the mechanism you should be using.

Thanks,
Mike

August 20, 2019 - 1:48pm
Response to MikeTownsend_GCS

Thanks for the response. Where do we need to pass the harness name? Do we need to call RedirectAndRun first and call the activity to show harness subsequently?

Can you please elaborate? 

August 21, 2019 - 2:19pm

RedirectAndRun gets you into a new thread context, but you have to tell it what you want to do once you are there. I think you will need to call your own activity that does something like Show-Harness to define what harness to show, etc.

Thanks,
Mike