Class DocumentRouteDeletedListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.listener.DocumentRouteDeletedListener
-
- All Implemented Interfaces:
PostCommitEventListener
public class DocumentRouteDeletedListener extends Object implements PostCommitEventListener
Listener that deletes orphan Tasks.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
QUERY_GET_TASKS_RELATED_TO_DOCUMENT_ROUTE
-
Constructor Summary
Constructors Constructor Description DocumentRouteDeletedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteOrphanTasks(CoreSession session, String id)
Deletes all tasks whose process id matches the given DocumentRoute id.void
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.
-
-
-
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
-
DocumentRouteDeletedListener
public DocumentRouteDeletedListener()
-
-
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 interfacePostCommitEventListener
- Parameters:
events
- the events to handle
-
deleteOrphanTasks
protected void deleteOrphanTasks(CoreSession session, String id)
Deletes all tasks whose process id matches the given DocumentRoute id.- Since:
- 11.1
-
-