-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF35, 11.4, 2021.0
-
Component/s: Retention
Documentation Retention Configuration - Ch. Add New Retention End Actions states that it is possible to define and use custom retention end actions but the retention service does not support operations other than Document.Trash, Document.Delete, Document.Lock, and Document.Unlock. See https://github.com/nuxeo/nuxeo/blob/8f2a21055dee2b4e5f3e25d6644b2a263805f399/addons/nuxeo-retention/nuxeo-retention-core/src/main/java/org/nuxeo/retention/service/RetentionManagerImpl.java#L219.
When following the documentation and adding the name of a custom automation chain/scripting to directory RetentionEnd, user gets the following execption:
2020-09-30T10:00:00,300 ERROR [EventServiceImpl] Exception during retentionExpiredListener sync listener execution, continuing to run other listeners org.nuxeo.ecm.core.api.NuxeoException: Invalid operation: RetentionEndTest at org.nuxeo.retention.service.RetentionManagerImpl.executeRuleActions(RetentionManagerImpl.java:219) ~[nuxeo-retention-core-10.10-HF27.jar:?] at org.nuxeo.retention.service.RetentionManagerImpl.executeRuleEndActions(RetentionManagerImpl.java:188) ~[nuxeo-retention-core-10.10-HF27.jar:?] at org.nuxeo.retention.service.RetentionManagerImpl.proceedRetentionExpired(RetentionManagerImpl.java:309) ~[nuxeo-retention-core-10.10-HF27.jar:?] at org.nuxeo.retention.listeners.RetentionExpiredListener.handleEvent(RetentionExpiredListener.java:67) ~[nuxeo-retention-core-10.10-HF27.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:242) ~[nuxeo-core-event-10.10-HF30.jar:?] at org.nuxeo.ecm.core.security.RetentionExpiredAction$RetentionExpiredComputation.sendEvent(RetentionExpiredAction.java:128) ~[nuxeo-core-10.10-HF32.jar:?] at org.nuxeo.ecm.core.security.RetentionExpiredAction$RetentionExpiredComputation.compute(RetentionExpiredAction.java:100) ~[nuxeo-core-10.10-HF32.jar:?]