Menu

#331 FinishWizardServlet force PDF to finish render before finish

v4.1 (Development)
pending
nobody
6
2012-03-05
2012-02-21
Ben Allen
No

Currently the FinishWizardServlet has a Thread.join() on the output processor to force us to wait until the PDF has been generated and added as a rendition to the PSI before it redirects back to the ActiveWizard tab. The ability to let this thread go off on its own and continue was useful because the user would be immediatly redirected back to the AW Tab and the row waiting for the PDF rendition would have some spinning balls letting the user know that the PDF generation was in progress. We would like to add back in the ability to show those spinning balls for the most recently finished form. The quickest way to re-add this in would be to leverage the same session attribute that is being used for the "wfStartedPsiId" feature. This sets a session attribute in the FinishWizardServlet with the ID of the newly generated form so that the ia_user_cr_main.jsp can know which PSI was just generated and show the spinning balls for this form. It then calls the /findPDF servlet with that ID until the thread to generate the PSI has successfully added the PDF as a rendition. The callback from the servlet can then remove the spinning balls from the jsp.

Discussion

  • Charles Dull

    Charles Dull - 2012-03-05

    Made updates

     
  • Charles Dull

    Charles Dull - 2012-03-05
    • status: open --> pending
     

Log in to post a comment.