Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Workflow Notification Templates for Specific Workflow EventTypes

Avatar

Avatar
Level 1
chris_workman
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
chris_workman
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
chris_workman
Level 1

25-05-2018

I would like to be able to have different, more tailored email template messaging for the workflow notifications dependent on the specific EventType that occurred. For example for WorkflowCompleted, WorkflowAborted, and NodeTransition. I have located the default template and can edit it but this is used for all event types. I have also noticed there are some Task and then Task Completed, Task Saved, etc.. email templates. I would like to do similar for standard workflows such as the request for activation template.

I am working with AEM 6.2 for this and so far have not found any documentation to assist with determining if this is at all supported with the out of box notifications.

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

25-05-2018

You can add your event topic in osgi config and create email template at /etc/notification/email/default like other eventTypes

Screen Shot 2018-05-26 at 12.02.24 AM.png

Avatar

Avatar
Level 1
chris_workman
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
chris_workman
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
chris_workman
Level 1

29-05-2018

The problem is not sending notifications for a new event Topic, it is separating the default workflow notifications by eventType. Specifically, the same email template is used for WorkflowCompleted, WorkflowAborted, and NodeTransition. I would like to give each of these their own template instead of all using the same default template.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

29-05-2018

I do not think there is an OOTB way of doing this. To do this - you would have to look at writing event handlers that can capture these events and then write the custom logic to use a specific email template.

How to Catch and Process Workflow Events

There is an artilce here that shows you how to use Java and use an email template -- Adobe Experience Manager Help | Creating Adobe Experience Manager HTL Components that send Email mes...