RM-1413: DispositionLifecycleJobExecuter does not execute the disposition action

* corrected logic error in job implementation
 * unit test
 * the disposition actions to execute are now configured via Spring configuration



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@67170 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2014-04-11 04:04:33 +00:00
parent efbf4a336e
commit b02f0cc7dc
6 changed files with 420 additions and 62 deletions

View File

@@ -21,6 +21,11 @@ log4j.logger.org.alfresco.module.org_alfresco_module_rm.patch=info
#
#log4j.logger.org.alfresco.module.org_alfresco_module_rm.audit.RecordsManagementAuditService=debug
#
# Job debug
#
#log4j.logger.org.alfresco.module.org_alfresco_module_rm.job=debug
#
# Behaviour debug
#

View File

@@ -72,6 +72,15 @@
<bean id="dispositionLifecycleJobExecuter"
class="org.alfresco.module.org_alfresco_module_rm.job.DispositionLifecycleJobExecuter"
parent="baseRMJobExecuter">
<!-- list of disposition actions to automatically execute when eligible -->
<property name="dispositionActions">
<list>
<value>cutoff</value>
<value>retain</value>
</list>
</property>
<property name="nodeService" ref="nodeService" />
<property name="searchService" ref="searchService" />
<property name="recordsManagementActionService" ref="recordsManagementActionService" />
@@ -86,7 +95,7 @@
</property>
<property name="cronExpression">
<!-- <value>0 30 3 * * ?</value> -->
<value>0 0/15 * * * ?</value>
<value>0/30 * * * * ?</value>
</property>
</bean>