05-25-2020 12:19 PM
I would like to remove admin's activiti from Activities Feed Emails. How can I achieve that?
In my project, I copied LocalFeedGenerator.java and LocalFeedTaskProcessor.java and replaced import org.alfresco.repo.activities.feed.FeedTaskProcessor with import my.project.FeedTaskProcessor.
Then I created FeedTaskProcessor.java and inside the first for loop, I added
String postingUserId = activityPost.getUserId(); if(postingUserId.equals("admin")) {continue;}
For some reason, sometimes it works, sometimes not. Why is that?
Explore our Alfresco products with the links below. Use labels to filter content by product module.