Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

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

Avatar

Level 8

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.
Screen Shot 2018-09-03 at 7.15.31 AM.png



Arun Patidar

View solution in original post

3 Replies

Avatar

Level 8

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.

Avatar

Correct answer by
Community Advisor

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.
Screen Shot 2018-09-03 at 7.15.31 AM.png



Arun Patidar