Class DocumentRouteDeletedListener

java.lang.Object
org.nuxeo.ecm.platform.routing.core.listener.DocumentRouteDeletedListener
All Implemented Interfaces:
PostCommitEventListener

@Deprecated public class DocumentRouteDeletedListener extends Object implements PostCommitEventListener
Deprecated.
Listener that deletes orphan Tasks.
Since:
11.1, deprecated since 2023, tasks clean up is done by @{link DocumentRouteOrphanedListener}
  • Field Details

  • Constructor Details

    • DocumentRouteDeletedListener

      public DocumentRouteDeletedListener()
      Deprecated.
  • Method Details

    • handleEvent

      public void handleEvent(EventBundle events)
      Deprecated.
      Description copied from interface: PostCommitEventListener
      Handles the set of events that were raised during the life of an user operation.

      The events are fired as a BundleEvent after the transaction is committed.

      Specified by:
      handleEvent in interface PostCommitEventListener
      Parameters:
      events - the events to handle
    • deleteOrphanTasks

      protected void deleteOrphanTasks(CoreSession session, String id)
      Deprecated.
      Deletes all tasks whose process id matches the given DocumentRoute id.
      Since:
      11.1