Question

8
Replies
3921
Views
Ravi Kumar Pisupati Member since 2015 74 posts
Optum
Posted: 4 years ago
Last activity: 3 years 9 months ago
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 Interface Low-Code App Development Data Integration
Moderation Team has archived post
Share this page LinkedIn