serviceName: If a customAction contains
a child tag with name serviceName, then on click of that action,
a process is called with the name represented by serviceName tag.
This process has same signature that of Letter PostProcess.
Parameters containing n tag name: If a customAction
contains a child tags starting with name cm_, then in post process
(be it Letter Post Process or the special process represented by
serviceName tag. These parameters are available in input xml under
<icc:meta> tag with cm_ prefix removed.
actionName: Whenever a post process is called as a
result of action click, the submitted XML (containing a special
tag with name <actionName> under <icc:meta> tag) holds
the name of the action taken by user.
Add the below customAction tag under the modelExtension tag in
acmExtensionsConfig.xml: <customAction name="sendForReview" label="Send For Review" styleName="submitButton" actionHandler="com.adobe.solutions.cmg.ccr.custom.CCRCustomActionHandler">
<!-- The post process to email the letter embedded with supporting document-->
<serviceName>SendLetterForReview/SendLetterForReviewProcess</serviceName>
</customAction>
SendLetterForReviewProcess extracts supporting document from icc/meta/supportDoc
tag. The document contents are decoded and attached to the letter.
Letter with attachment is mailed to the mailId taken from icc/meta/mailTo
tag. The label/tooltip strings can be localized in the ACMExtensionsMessages.properties
file which is found in CorrespondenceManagementSolutionTemplate\package-resources\etc\aep\config\assetcomposer\apps\cm\acmExtensions\localeACMExtensionsMessages.properties.
|
|
|