Posted: 31 Jan 2018 13:48 EST Last activity: 1 Feb 2018 18:03 EST
Generate PDF and attach to the case
We have a requirement where we need to capture the values from an external system (via SOAP call) and put them into a PDF document from the clipboard and attach the PDF to the PEGA case. Have a couple of queries-
1. Can we leverage the "PDF for eForm Wizard" in this case? I tried to import the PDF into the wizard and although it generated the eForm rule but it did the map eform rule was not. Is there any pre-requisite for the pdf to be recognizable by the wizard?
2. The other option, I suppose, is developing a custom Corr rule and then call the OOTB HTMLToPDF to convert the HTML into PDF. We don't want to go this route as because the PDF structure is very complex and we will need a LOT of efforts to build the Corr rule. Even maintenance of the Correspondence rule will be very difficult.
Has anyone worked on a similar requirement? Inputs are highly appreciated!
The eform wizard is most useful if the pdf template you are pulling in has fields you want to populate from property values in your work object. If you use that wizard, you could then use activities GetEFormFromRuleFileEForm, GenerateEFormAttachEForm, and AttachEForm, in that order, to generate a pdf file from the template, fill in the fields, and attach the resultant pdf file to your work object.