Attachment link management
Hello,
We need to download attachments of a case from a java 7 application.
For that purpose, the PEGA platform has been configured to send a link in the JMS message as follow :
...<attach1>https://mypegaserver/prweb?pyActivity=Work-.GetAttachmentReference&linkInsHandle=LINK-ATTACHMENT%20AFKLM-ICARE-WORK%20C-3462!20171124T090544.222%20GMT</attach1> ...
When we copy paste the link into a web browser, we are able to download the file manually but the java 7 application that is retrieving the message is downloading a javascript file.
As we can see, the web browser is interpreting the javascript and then downloading the attachment.
Is there a way that PEGA is providing a direct download link ?
If not, could you provide a method in java 7 to execute the javascript and download the file ?
Parsing the javascript file and search for the direct link is not a proper solution if the file structure changes.
Thank you for your help.
Matthieu