Skip to content

Instantly share code, notes, and snippets.

@tmoreira2020
Created July 15, 2011 18:33
Show Gist options
  • Save tmoreira2020/1085242 to your computer and use it in GitHub Desktop.
Save tmoreira2020/1085242 to your computer and use it in GitHub Desktop.
Email notification using Freemaker and Kaleo
<state>
<name>approved</name>
<actions>
<notification>
<name>Application Approved Notification</name>
<description>Application Approved Notification</description>
<execution-type>onAssignment</execution-type>
<template>
<![CDATA[
<#assign context = serviceContext.getAttribute("context")>
<p>Dear Developer,</p>
<p>
The application submission ${context.productName} has been approved for publishing.
If you have not already done so, please set your pricing and publish dates.
The application record can be accessed here
<a href="${context.externalEditURL}">${context.externalEditURL}</a>
. Select Edit Pricing Info to update.
</p>
<p>Regards,</p>
<p>Liferay Inc.</p>
]]>
</template>
<template-language>freemarker</template-language>
<notification-type>email</notification-type>
</notification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment