Class DocumentRouteOrphanedListener

    • Field Detail

      • QUERY_GET_TASKS_RELATED_TO_DOCUMENT_ROUTE

        protected static final String QUERY_GET_TASKS_RELATED_TO_DOCUMENT_ROUTE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DocumentRouteOrphanedListener

        public DocumentRouteOrphanedListener()
    • Method Detail

      • handleEvent

        public void handleEvent​(EventBundle events)
        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
      • deleteOrphanDocumentRoutes

        protected void deleteOrphanDocumentRoutes​(CoreSession session,
                                                  String id)
        Removes the given id from DocumentRoutes attached documents list and deletes the DocumentRoutes if they are not attached to a document anymore.
      • deleteOrphanTasks

        protected void deleteOrphanTasks​(CoreSession session,
                                         String id)