6 Replies Latest reply on Mar 5, 2009 5:27 PM by cmiller99

    Custom Render - digital signatures/prepopulate

    cmiller99
      Morning,

      Has anyone got a custom render going that prepopulates and then applies RE for a digital signature? I am using examples from the following.

      http://livecycleapps.wordpress.com/2009/01/29/prepopulate-form-for-display-in-workspace-an d-route-it-to-another-user/
      http://livecycleapps.wordpress.com/2009/01/15/display-a-reader-extended-form-in-workspace- from-an-xdp-template/

      If I pass in a XFA form I can prepopulate however the form fails when clicking complete. I believe this is due to it not being a Document Form variable.

      What I think I need to do is perform a render just after the prepopulate as a XFA form and then move that to a document Form and then render and RE. however I have yet to see an example how passing data into a form document. that is wha I am exploring.

      does anyone have any other suggestions?

      thanks,
      Carmen
        • 1. Re: Custom Render - digital signatures/prepopulate
          JoshDBoyle Level 1
          Carmen

          We at Cardinal Solutions have seen the need for clients to convert an xfaForm to a Document Form many times. Unfortunately doing so is not exactly straightforward due to the reason that xfaForm and Document Form are very different in how they work. One way of converting from an xfaForm to a Document Form in the interest of Digital Signatures is as follows:

          1) Have two templates of your form. The two templates should be identical aside from having one's submission method set to XDP and the other's submission method set to PDF

          2) Point your xfaForm process variable to your XDP submission template

          3) Point your Document Form process variable to your PDF submission template

          4) Create a Document process variable

          5) Use the xfaForm variable up until you need to convert to DocumentForm. Let's say that you have four user steps in your process: A, B, C and D and at D you want to present the Document Form variable to the user for collection of their Digital Signature. At step C, present the xfaForm variable but set the output data (in the Assign Task properties) to your Document variable you created in 4).

          6) Within "Advanced" settings in your Document Form variable, ensure that "Call the render service only once" is checked.

          7) Within "Advanced" settings in your Document Form variable, set the Input Data Doc parameter to be the Document variable you created in 4).

          If you have any questions, or if I have misunderstood and you require other help, please let me know!

          Josh Boyle
          jboyle@cardinalsolutions.com
          Cardinal Solutions Group
          • 2. Re: Custom Render - digital signatures/prepopulate
            cmiller99 Level 1
            Hi Josh,

            thank you for your response, however I still don't follow how it helps we out.

            I am trying to perform this all in one custom render.
            pass in a variable that I can add the current user that it is assigned to.
            So I have a letter, that comes into a user, and I want that username on the letter.

            So as you state in step 5 above, I simply have one assign user task.
            on this task I want a form to be generated (xdp template) that have the current users name on it and that also allows them to digital sign this document.

            You solution may work however I don't follow. Step 6, when do I introduce the form document?

            I can send the LCa I currently have to possibly clean up the image that I am trying to present in this topic.

            Thanks,
            Carmen
            • 3. Re: Custom Render - digital signatures/prepopulate
              MarcelBoucher Adobe Employee
              Carmen,

              You are on the right track. Your custom renderer needs to take and XDP and run it though the Render PDF Form service. This is where you can pass in XML data in the Form Data parameter to pre-populate the form.

              Once you have a PDF result (Document Variable), don't forget to run it through the form augmentor (this will inject the necessary JavaScript so the PDF form will work properly in Workspace) then run it through RE to apply rights.

              Your output variable should be of type Document. Not Document Form.

              Marcel
              • 4. Re: Custom Render - digital signatures/prepopulate
                cmiller99 Level 1
                Morning,

                I can get that far, the document opens up in workspace.
                however when I click complete after signing the form it gives me the following error in the server.log

                2009-03-05 09:22:40,998 WARN [com.adobe.workspace.tasks.com.adobe.workspace.tasks.DocumentSubmitServlet] ALC-WKS-005-029: A problem occurred in the Submit Service. Please review the submit orchestration for this process.
                flex.messaging.MessageException: ALC-WKS-005-029: A problem occurred in the Submit Service. Please review the submit orchestration for this process.
                at com.adobe.workspace.AssemblerUtility.createMessageException(AssemblerUtility.java:384)
                at com.adobe.workspace.tasks.DocumentSubmitServlet.doPost(DocumentSubmitServlet.java:311)

                Thoughts?

                Thanks,
                Carmen
                • 5. Re: Custom Render - digital signatures/prepopulate
                  MarcelBoucher Adobe Employee
                  Carmen,

                  What do you have defined as the submit service for your xfaForm variable?
                  • 6. Re: Custom Render - digital signatures/prepopulate
                    cmiller99 Level 1
                    Marcel,

                    Nothing as of yet, do I need it?
                    In what situations do I required a submit service as I have not used it.

                    Thanks,
                    Carmen