Posted: 16 May 2018 15:48 EDT Last activity: 1 Jun 2018 15:38 EDT
pega.desktop.showHarnessWrapper and pega.desktop.openWorkByHandleReload not working
We are running 7.2.2 with CPM framework and we are trying to open another Work Object from the harness launched after completing a flow action on the current work object (an intent task inside an interaction).
I have tried using the pega.desktop.openWorkByHandleReload (because the Work Object is in a different Work Pool) and the pega.desktop.showHarnessWrapper script functions to do that but nothing is happening.
Anyone has a working example of how one of those can be used?
I don't have an answer to your question, but I can state that there is a big difference between how vanilla work objects are opened and how Interaction work objects are opened. PCS (CPM) does a lot of extra work under the covers. It is quite likely that the APIs you are using are ignorant of the extra processing required to open an Interaction. I wish I could tell you what that extra processing is, but I don't have that info. You may want to carefully Trace what happens in the OOTB case.
pega.desktop.openWorkByHandleReload works when used inside the regular Perform Harness. I had to use a "dummy" assignment with hidden submit button and an SLA which completes the assignment automatically to get this to work.