Question

8
Replies
4121
Views
Close popover
Ravi Kumar Pisupati (Ravi Kumar Pisupati)
Optum
Principal LSA - Pega
Optum
US
Ravi Kumar Pisupati Member since 2015 85 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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.