Scenario: Previewing and Reloading a Correspondence

When creating a correspondence, you can submit the correspondence, while in an interim state, before finalizing it. The following scenario describes how to preview an inactive version of an asset, or reconstitute the state of a submitted correspondence using Create Correspondence user interface.

Implementation overview

For instruction on how to use the Create Correspondence user interface to create or modify a correspondence see Using the solution template.

First design a post process using ADEP Workbench, that stores the XML data submitted using the Create Correspondence user interface. This process is called each time the correspondence is submitted using the Create Correspondence user interface. The Create Correspondence user interface only provides a submit operation using the Submit button, it does not provide a save operation. Therefore, a custom post process is required to differentiate between a submit for processing (final submit) versus submit for save (to allow reloading).

cmData and cmDataURL

To reload the correspondence, load the Correspondence Management application using the cmData or cmDataUrl parameter and feed the XML data from the previous submit. When using the cmData parameter, the XML data is provided inline in the URL. For example:

http://<server>:<port>/cmsa/dc?cmData=<XML data>
Depending on the size of the XML data, you can use the cmDataUrl parameter to provide the XML from a source file using basic protocols such as ftp, http, or file. For example:
Note: You do not have to specify the cmLetterId or cmLetterName/State/Version when reloading a correspondence, since the submitted data contains the ID of the correspondence that is reloaded. If cmLetterId or cmLetterName/State/Version are specified, the loaded correspondence object's ID must match the ID specified in the given XML data.


If an error occurs during reload, the Flash Log (flashlog.txt) is enabled (which requires a Flash debugger configured to output Flash log data). The Debug Log Window (which can be accessed by pressing Ctrl + Alt + D) contains more information. The error is either syntactical, having to do with the syntax of the ICC Control Data itself, or logical, having to do with the contents of the ICC Control Data, where the ICC Control Data is the <icc:icc> element found in the submitted letter data. Check the server logs (server.log) and the solution logs (correspondencemanagement.log) to see if there was a server-side error while reloading or rendering the correspondence.