Settings on the Publish instance

  1. login to https://localhost:publishport/aem/forms.
  2. Navigate to Letters to view the published letter that is available on the publish instance.
  3. Configure the AEM DS Settings. See Configuring AEM DS settings.
NOTE
While using either Forms or AEM workflows, before you make any submission from the publish server, it is necessary to configure the DS settings service. Otherwise, the Form submission shall fail.

Letter Instances Retrieval

Saved letter instances can be manipulated further, such as retrieval of letter instances and deletion of letter instances, by using the following APIs defined in LetterInstanceService.

Server-side APIOperation nameDescription

Public LetterInstanceVO

getLetterInstance(String letterInstanceId)

Throws ICCException;

getLetterInstanceFetch the specified letter instance
Public void deleteLetterInstance(String letterInstanceId) throws ICCException;deleteLetterInstanceDeleted the specified letter instance
List getAllLetterInstances(Query) throws ICCException;getAllLetterInstancesThis API fetches letter instances based on the input query parameter. To fetch all letter instances, query parameter can be passed as null.
Public Boolean letterInstanceExists(String letterInstanceName) throws ICCException;letterInstanceExistsCheck if a LetterInstance exists by the given name

Associating a post process with a letter

In the CCR user interface, complete the following steps to associate a post process with a letter:

  1. Hover over a letter and select View Properties.
  2. Select Edit.
  3. In the Basic Properties, using the Post Process drop-down, select the post process to associate with the letter. Both the AEM and Forms-related post processes are listed in the drop-down.
  4. Select Save.
  5. After configuring the letter with the Post Process, publish the letter and optionally on the publish instance, specify the processing URL in AEM DS Settings service. This ensures that the post process is run on the processing instance.

Reload a draft letter instance 

A draft letter instance can be reloaded in user interface by using the following url:

https://<server>:<port>/aem/forms/

createcorrespondence.html?/random=$&cmLetterInstanceId=$<LetterInstanceId>

LetterInstaceID: The unique ID of the submitted letter instance.

For more information on saving a draft letter, see Saving drafts and submitting letter instances.

Experience Manager