Question

8
Replies
4023
Views
Close popover
Ravi Kumar Pisupati (Ravi Kumar Pisupati)
Optum
Principal LSA - Pega
Optum
US
Ravi Kumar Pisupati Member since 2015 83 posts
Optum
Posted: December 11, 2015
Last activity: November 30, 2016
Closed
Solved

Where pega.desktop.createNewWork() function is used?

Hi,

Can someone tell me on what is the purpose of pega.desktop.createNewWork() function? Does this use to create a work object from the HTML by passing some params? If yes, what are the implications of using it? If no, where can we use it?

Desktopwrapper.js

/*

@api

Brings up the New Harness for the specified type of object.

@param $String$strClassName - Type of object(work item, cover, covered item).

@param $Integer$harnessVersion - 0 or 1, 0 is heritage (v3) harness, 1 is v4 harness.

@param $String$strFlowName - Name of flow to start for this work object.

@return $void$

*/

function createNewWork(strClassName, harnessVersion, strFlowName) {

  return pega.desktop.createNewWork(strClassName, harnessVersion, strFlowName);

}

Thanks,

Ravi Kumar.

System Administration User Experience Low-Code App Development Data Integration
Moderation Team has archived post