Discussion

Call Harness through activity which will refresh the work area

How to Call Harness through activity which will refresh the work area

**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
July 6, 2015 - 2:28pm

I hope the call to activity is onClick of either a button or link similar component ... in such cases could you please try Launch Harness - Replace current option and share your observations...

 

note: OOTB activity Show-Harness is the API generally referred to replace current harness via Activity rule

July 6, 2015 - 3:05pm

It's like in URL I'll hard code to call a activity based on which I have to call a flow(I used harness to script which calls the flow). There is not button or link click event

Pega
July 6, 2015 - 3:13pm

could you please refer to function 'pega.desktop.showHarness'

July 6, 2015 - 3:27pm

My trigger point would be an activity, can you pls explain how shall I use the above function in activity

Pega
July 7, 2015 - 7:30am

sorry - thats the function used onClick using Run script on click of a button or link...

July 8, 2015 - 1:42am

hi Dharan,

What is the requirement for you to start an Harness and from there start a flow?

Raghunatha

July 8, 2015 - 5:56am

Based on parameter on URL, different flows should launch without any button or link clicks.

Pega
July 8, 2015 - 6:49am

could you please try constructing the URL...

 

openWorkByURL("pyActivity=Work-.New&InsClass="+currentWorkPool+"&FlowType=<FLOWNAME>&FolderType=pyDefault&HarnessPurpose=New&pyNextURL=", "Work","true");
}

 

calling this as a script onload may help...

July 8, 2015 - 3:24pm

Moved this thread to a more appropriate forum section: Pega Platform > Java & Activities. 

September 18, 2015 - 6:59am

Call ReloadHarness

October 19, 2015 - 8:13am

HI All