Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29726

Fix use of custom retention end action

    XMLWordPrintable

    Details

    • 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
    • Release Notes Summary:
      The usage of custom retention end action is now possible.
    • Tags:
    • Backlog priority:
      400
    • Sprint:
      nxApps 2020 Cycle 10

      Description

      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:?]
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d