Question

GovCIO
US
Last activity: 30 Nov 2016 2:58 EST
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.