Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
InstallationConfiguration3.2Activities Service
Note: for earlier Alfresco releases (pre-3.2) please refer to Activity Service Config for 3.0 and 3.1
With Alfresco 3.2 onwards, the activity service has been re-factored such that iBatis resources are loaded according to Hibernate dialect class hierarchy.
There is no longer a need to override activities configurations. The following installed files are deprecated and ignored, hence can be removed after upgrading from 3.0/3.1 to 3.2:
The repository endpoint (repo.remote.endpoint.url) property is no longer required (unless the local feed generator is overridden to make remote repo callbacks).
Please note: the feed cleaner now also supports the ability to clean site/user feeds to a maxFeedSize, in addition to maxAgeMins.
The following config applies since Alfresco 3.2 (note: after Labs 3.2 preview):
The feed cleaner defaults can now be overridden via custom repository properties, for example:
...
# Activity feed max size and max age (eg. 44640 mins = 31 days)
activities.feed.max.size=100
activities.feed.max.age.mins=44640
...
You can override custom repository properties, by adding to:
Some defaults can be overridden via repository properties (see above). If needed, the post cleaner can also be overridden by adding a alfresco/extension/custom-activities-context.xml file. For example:
<bean id='postCleaner' class='org.alfresco.repo.activities.post.cleanup.PostCleaner'>
<property name='postDAO' ref='postDAO'/>
<property name='maxAgeMins'>
<value>30</value>
</property>
</bean>
<beans>
The activity service uses a number of scheduled jobs. The parameters to these jobs (such as repeatInterval) can be overridden by adding and/or updating the alfresco/extension/custom-scheduled-action-services-context.xml file. For example:
<beans>
<bean id='feedCleanerJobDetail' class='org.springframework.scheduling.quartz.JobDetailBean'>
<property name='jobClass'>
<value>org.alfresco.repo.activities.feed.cleanup.FeedCleanupJob</value>
</property>
<property name='jobDataAsMap'>
<map>
<entry key='feedCleaner'>
<ref bean='feedCleaner' />
</entry>
</map>
</property>
</bean>
<bean id='feedCleanerTrigger' class='org.alfresco.util.TriggerBean'>
<property name='jobDetail'>
<ref bean='feedCleanerJobDetail' />
</property>
<property name='scheduler'>
<ref bean='schedulerFactory' />
</property>
<property name='startDelayMinutes'>
<value>5</value>
</property>
<property name='repeatIntervalMinutes'>
<value>10</value>
</property>
</bean>
<bean id='feedGeneratorJobDetail' class='org.springframework.scheduling.quartz.JobDetailBean'>
<property name='jobClass'>
<value>org.alfresco.repo.activities.feed.FeedGeneratorJob</value>
</property>
<property name='jobDataAsMap'>
<map>
<entry key='feedGenerator'>
<ref bean='feedGenerator' />
</entry>
</map>
</property>
</bean>
<bean id='feedGeneratorTrigger' class='org.alfresco.util.TriggerBean'>
<property name='jobDetail'>
<ref bean='feedGeneratorJobDetail' />
</property>
<property name='scheduler'>
<ref bean='schedulerFactory' />
</property>
<property name='startDelayMinutes'>
<value>0</value>
</property>
<property name='repeatInterval'>
<value>30000</value>
</property>
</bean>
<bean id='postLookupJobDetail' class='org.springframework.scheduling.quartz.JobDetailBean'>
<property name='jobClass'>
<value>org.alfresco.repo.activities.post.lookup.PostLookupJob</value>
</property>
<property name='jobDataAsMap'>
<map>
<entry key='postLookup'>
<ref bean='postLookup' />
</entry>
</map>
</property>
</bean>
<bean id='postLookupTrigger' class='org.alfresco.util.TriggerBean'>
<property name='jobDetail'>
<ref bean='postLookupJobDetail' />
</property>
<property name='scheduler'>
<ref bean='schedulerFactory' />
</property>
<property name='startDelayMinutes'>
<value>1</value>
</property>
<property name='repeatInterval'>
<value>15000</value>
</property>
</bean>
<bean id='postCleanerJobDetail' class='org.springframework.scheduling.quartz.JobDetailBean'>
<property name='jobClass'>
<value>org.alfresco.repo.activities.post.cleanup.PostCleanupJob</value>
</property>
<property name='jobDataAsMap'>
<map>
<entry key='postCleaner'>
<ref bean='postCleaner' />
</entry>
</map>
</property>
</bean>
<bean id='postCleanerTrigger' class='org.alfresco.util.TriggerBean'>
<property name='jobDetail'>
<ref bean='postCleanerJobDetail' />
</property>
<property name='scheduler'>
<ref bean='schedulerFactory' />
</property>
<property name='startDelayMinutes'>
<value>10</value>
</property>
<property name='repeatIntervalMinutes'>
<value>10</value>
</property>
</bean>
<beans>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.