I am working on a solution to submit an adaptive form to a process in workbench. On submission, I want to extract the data from the form and merge it with xdp file to generate a document of record. I want to display the generated pdf aka document of record in a pop up to the user. I am able to submit the form and generate the DOR but I am stuck on the step to pass the DOR back and display it as a pop-up to the user. Could someone please help me with it? I am using AEM on J2EE.
P.S. I also looked at the solution at link - Adobe Experience Manager Help | Using API to generate Document of Record with AEM Forms
But I am not getting how to create the service user since I am not using the OSGi stack. Please help!