Show Menu
TOPICS×

Getting this use case to work on your system

For the sample assets to work on your system, it is assumed that you have AEM Author and Publish instance running on port 4502 and 4503 respectively. It is also assumed the AEM Author is accessible via admin / admin . If the port numbers or the admin password has been changed then these sample assets will not work. You will have to create your own assets using the provided sample code.
To get this use case working on your local system, following these steps:
  • Install AEM Author instance on port 4502 and AEM Publish instance on port 4503
  • Follow the instructions specified in developing with service user in AEM Forms . Please make sure to create the service user and deploy the bundle on your AEM Author and Publish instance.
  • Search for Apache Sling Referrer Filter . Make sure the Allow Empty checkbox is selected.
  • Deploy the custom AEMFormDocumentService Bundle .This bundle needs to be deployed on your AEM Publish instance. This bundle has the code to generate interactive PDF from mobile form.
    • offline-submission-profile.zip - This AEM package contains the custom profile that allows you to download the interactive pdf to your local file system. Deploy this package on your AEM Publish instance.
    • xdp-form-and-workflow.zip - This AEM package contains XDP, sample workflow,launcher configured on node content/pdfsubmissions. Deploy this package on both your AEM Author and Publish instance.
    • HandlePDFSubmission.HandlePDFSubmission.core-1.0-SNAPSHOT.jar - This is the AEM bundle which does most of the work. This bundle contains the servlet mounted on /bin/startworkflow . This servlet saves the submitted form data under /content/pdfsubmissions node in AEM's repository. Deploy this bundle on both your AEM Author and Publish instance.
  • Fill in several fields and then click the button on the toolbar to download the interactive PDF.
  • Fill in the downloaded PDF using Acrobat and hit submit button.
  • You should get a success message
  • Login to AEM Author instance as admin
  • You should have workitem to review the submitted PDF
Instead of submitting the PDF to servlet running on publish instance, some customers have deployed the servlet in servlet container such as Tomcat. It all depends on the topology the customer is comfortable with.for the purpose of this tutorial we are going to use the servlet deployed on publish instance for handling the pdf submissions.