Q 1. I need some clarification on the "Processes" underneath an Application's "Profile" within the DDC_Admin UI. I see "Pre", "Post", "Application", "Context" and "Document chain" as listed events but I have no idea when these events fire and what processes I should call as a result of them doing so.
Answer:
"Pre" - invoked before document filling starts for this application.
"Post" - invoked after all the documents in application are submitted.
"Application" - not used.
"Context" - invoked for retrieving contexts (questions) for a particular application. If this process is not defined default implementation fetches contexts from DB.
"Document Chain" - invoked to generate document chain, depending on the context values. If this process is not defined default implementation creates document chain based on the rules (mapping of context and documents) defined through Admin UI.
Q 2. As I understand it, the submission of a form that was rendered within its iFrame can trigger a process such as an approval process wherein this form is, perhaps, sent through an approval process. Where do I specify the approval process to run and how do I get the form itself to be input to this process?
Answer: For each form a submitProcess can be defined which is invoked on submission of this form. This process can be defined in the Document Library Panel of DDC_Admin UI. The approval process is required to be specified in this submitProcess. Submitted data is passed as one of the parameters to this process.
Q 3. The "Building Dynamic Data Capture Solutions" technical guide explains that "At the completion of the form chain, the Dynamic Data Captures framework triggers a completion event that ties together the different processes that each mini application is associated with and aggregates all the documents into one package". To me, this sounds as though all of the forms the user filled in are packaged up together as either one PDF document or as a PDF package. However, I'm unsure as to where this document ends up or how I can even use it.
Answer: The DDC framework invokes the processes on defined events, however logic of packaging submitted forms is required to be implemented in relevant processes. Following two custom processes are required to be defined:
Submit Form process - Invoked on each form submission. This process should save the submitted form to some temporary storage.
Post process - Invoked after submission of all the forms. This process should retrieve all the submitted forms from temp storage and create a PDF Package out of it.