cancel
Showing results for 
Search instead for 
Did you mean: 

activities feed notifier

denapoli
Champ in-the-making
Champ in-the-making
Hello, I am having hard time setting up the activities feed notifier, I would like to send the notification once a week every Monday at 09 00 am.
When I use  activities.feed.notifier.cronExpression = 0 00 09 * * ? it works fine for everyday email but when I try 0 00 09 1 * ? or 0 00 09 * 1 ? It doesn't work, notification doesn't get sent.
please advise.

# Alfresco Communnity 5.0.d
activities.feed.max.size=100
activities.feed.max.ageMins=10080
activities.feed.notifier.startDelayMins=${system.cronJob.startDelayMinutes}
activities.feed.notifier.cronExpression=0 00 09 * * ?
activities.feed.notifier.enabled=true
4 REPLIES 4

douglascrp
World-Class Innovator
World-Class Innovator
Try this format:

0 0 9 ? * MON

monicakumari
Star Contributor
Star Contributor

could you please help me with the file name, in which I should make these changes ?

douglascrp
World-Class Innovator
World-Class Innovator

That configuration can be included in the alfresco-global.properties file

andy4488
Champ in-the-making
Champ in-the-making

Just in case someone is here because they are having a hard time setting up activities feed notifier, I just managed to do it successfully after a lot of trial and error. 

This is what worked for me...>

I use Community Edition 5.2

Email invitations were already working OK so I knew that the SMTP configuration was good but I needed users to get emails whenever someone added a document to an Alfresco folder.

I edited file C:alfresco-community/tomcat/shared/classes/alfresco-global.properties

I found the properties in this file seem to override everything else.

I added=>

### Activities feed E-mail notifier ###
activities.feed.max.size=100
activities feed.max.ageMins=44640
activities.feed.notifier.startDelayMins=${system.cronJob.startDelayMinutes}
activities.feed.notifier.cronExpression=0 * * ? * * *
activities.feed.notifier.enabled=true
# 0 0 0 * * ?   every day at midnight  #
# 0 0 1 * * ?   every day at 1am       #
# 0 0 * ? * * * every hour             #
# 0 * * ? * * * every minute           #
# 0 0 9 ? * MON * every Monday at 09:00 #
I have it set to notify users within a minute (cronExpression=0 * * ? * * *) of a new document being uploaded.  That's great for my environment because only a few documents get uploaded per week.  If it were many documents per hour the emails would get pesky so you could step it down.  I put a few options in the comments (lines beginning with #).  Also restart Alfresco (I end alfrescoPostgresSQL subsystem, it ends alfrescoTomcat automatically)  Then start alfrescoPostgreSQL and alfrescoTomcat (both manually).  Each user has a setting in their profile to determine if they get email notifications so this must be ticked.
I initially tried to do this via the Admin Console...but in community edition it only has a few options so pretty useless.
I then tried just adding activities.feed.notifier.enabled=true but that alone does not work.  I tried erroneous cron scheduler expressions until I found Free Online Cron Expression Generator and Describer - FreeFormatter.com which makes it easy to generate what you need. Finally  I found you need all the properties above added before it works.