Class DocumentRoutingServiceImpl.AttachedDocumentsChecker
java.lang.Object
org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.AttachedDocumentsChecker
- Enclosing class:
- DocumentRoutingServiceImpl
public static class DocumentRoutingServiceImpl.AttachedDocumentsChecker
extends UnrestrictedSessionRunner
Cancel the workflow instance if all its attached document don't exist anymore. If the workflow is cancelled then
the isWowkflowCanceled is set to true.
- Since:
- 8.4
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
Constructor Summary
ModifierConstructorDescriptionprotected
AttachedDocumentsChecker
(CoreSession session, String workflowInstanceId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
Constructor Details
-
AttachedDocumentsChecker
-
-
Method Details
-
run
public void run()Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.session
available will be the one passed to#UnrestrictedSessionRunner(CoreSession)
.- Specified by:
run
in classUnrestrictedSessionRunner
-