Hi,
I am currently exploring the AEM Guides feature.
Regarding task creation, I understand that there is an out-of-the-box (OOTB) workflow that sends a notification to the reviewer once the review task is created.
However, I need help with the reverse process. Is there any documentation about a workflow or process that notifies the author/owner via email and the bell notification icon within the AEM server once a reviewer submits all their comments?
Thanks!
Topics help categorize Community content and increase your ability to discover relevant content.
Hi @eysmatyu
To notify the author when a reviewer submits their comments, you can implement a custom AEM workflow that triggers email and in-system notifications. Here’s how to achieve this:
Create Custom Workflow:
In Workflow Editor, create a workflow model with the following steps:
Configure Workflow Launcher:
Trigger the workflow when the review is completed by setting up a Launcher:
/content/<project-path>/guides
Modified
Node Type: nt:unstructured
Email Notification:
Add a Send Email step to notify the author:
${payload.jcr:content/metadata/authorEmail}
Review Completed
The review for ${payload.name} is complete
@Component(service = WorkflowProcess.class, property = {"process.label=Send Bell Notification"})
public class BellNotificationProcess implements WorkflowProcess {
@Reference
private NotificationManager notificationManager;
@Override
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) {
String authorId = (String) workItem.getWorkflowData().getMetaDataMap().get("authorId");
String message = "Your review task has been completed.";
notificationManager.send(authorId, message);
}
}
Deploy and Test:
Deploy the workflow and custom step, then verify email and bell notifications trigger upon review completion.
Please let me know in case of any doubts.
Best
Partyush Kumar
Views
Replies
Total Likes
Go through this AEM guide documentation on "Customize review workflow" which will help your case.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies