AEM 6.2 classic : How to use OOTB Email Templates for Workflow Notification for different workflows | Community
Skip to main content
cquser1
New Participant
September 2, 2018
Solved

AEM 6.2 classic : How to use OOTB Email Templates for Workflow Notification for different workflows

  • September 2, 2018
  • 3 replies
  • 1288 views

Hi All,

As per Configuring Email Notification  , if any customization is to be made to email template for workflow notification, it says  open the en.txt file located below the /etc/workflow/notification/email/default, make changes and save

Suppose,

1]There are already existing workflows that are making use of this OOTB template and we do not want to change that.

2] There is no option to overlay this.

3] And we have a newly introduced custom workflow that makes use of OOTB template which has an additional "comment" property which is captured and added to OOTB template.

In #3 scenario, what is the approach we should take,reason being if we add comment property to OOTB template, existing workflow notifications will be impacted.

Any thoughts/pointers/reference article on this will be really helpful.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

For option c

You can check aem63app-repo/TestEventHandler.java at master · a...  for demo Event handler code
you can find all events at http://localhost:4502/system/console/events
You need to send templated email on com/adobe/granite/workflow/event event topic and based on event property you can filter the email triggering.

3 replies

arunpatidar
arunpatidarAccepted solution
New Participant
September 3, 2018

For option c

You can check aem63app-repo/TestEventHandler.java at master · a...  for demo Event handler code
you can find all events at http://localhost:4502/system/console/events
You need to send templated email on com/adobe/granite/workflow/event event topic and based on event property you can filter the email triggering.

Arun Patidar
cquser1
cquser1Author
New Participant
September 3, 2018

Hi Arun,

Thank you for your reply.

Looks like to have a custom email template /etc/workflow/notification/email/default/CUSTOM.txt, we need to do one of the below :

a] custom process step and use the custom template path[/etc/workflow/notification/email/default/CUSTOM.txt] in that.

b] Go ahead and change the existing OOTB template

c] With Event Handler, instead of custom process step code. Any reference code/pointers here would be helpful.

arunpatidar
New Participant
September 2, 2018
Arun Patidar