Posted: 22 Jan 2019 11:40 EST Last activity: 21 Feb 2019 15:20 EST
Link-Objects method from AttachtoWork not attaching PDF to the work object
I am using PEGA V1.7.8 and creating a PDF for one of the sections.
My flow is a Standard process flow. I have a section and on finish assignment I am calling the pxCreatePDF activity. The activity executes without error and I am seeing the PDF stream created in the Data-WorkAttach-File class. The PDF file instance has the correct PZInsKey and the params also look good, and the AttachtoWork activity also executes without errors but I never see the pyAttachment attached to the workobject class (pyWorkPage). The Link-Objects method executes in the AttachToWork activity but when I look at the clipboard I am not able to find the pdf file.
After looking into the AttachToWork activity, noticed that at step 20 we are removing the pyPDFAttachWorkPage from clipboard based on local.bRemoveWhenDone variable value. This local variable is initialized in Step 5 Java code, so i would suggest you to trace this activity and analyze this behavior for further investigation to identify the flow it has been executed.