I am successfully able to generate and download the word document by generating it with the function com.pegarules.generated.pega_appdefinition_documentapp.pzGenerateDocument
Additionally I have a requirement to attach the word document to a Pega case. The url string returned by the function com.pegarules.generated.pega_appdefinition_documentapp.pzGenerateDocument contains * for which Pega Engine APIs to instantiate a PRFIle type object is throwing runtime exceptions.
Also tried with the standard java function new java.net.URL() but unable to create (object null) any URL object from the url string.
If someone has implemented this sort of a requirement kindly suggest