Interface DocumentRouteElement
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- DocumentRoute,- DocumentRouteStep,- DocumentRouteStepsContainer,- GraphRoute
- All Known Implementing Classes:
- DocumentRouteElementImpl,- DocumentRouteImpl,- DocumentRouteStepsContainerImpl,- GraphNodeImpl,- GraphRouteImpl
An element of a 
DocumentRoute- Author:
- arussel
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumThe lifecycle state of an elementstatic enumThe transition of the lifecycle state.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbackToReady(CoreSession session) Set the step back to the ready state from running or done.voidcancel(CoreSession session) Cancel this element.booleancanDeleteStep(CoreSession session) If this session can delete this step.booleancanUndoStep(CoreSession session) If this step can be undone.booleancanUpdateStep(CoreSession session) If this session can update this step.booleancanValidateStep(CoreSession session) If this session can validate the step.voidfollowTransition(DocumentRouteElement.ElementLifeCycleTransistion transition, CoreSession session, boolean recursive) make this element follow a transition.getAttachedDocuments(CoreSession session) Return the list of documents that this route processes.the description of this element.Get the underlying document representing this element.getDocumentRoute(CoreSession session) Return the DocumentRoute this element is part of.getName()The name of this element.getTitle()booleanbooleanisDone()if this route is done.booleanisDraft()if this route is draft.booleanbooleanisReady()if this element is ready.booleanif this route is running.booleanif the route this element is part of has been validated.voidResumes execution on a route node.voidrun(CoreSession session) Execute this element.voidrun(CoreSession session, Map<String, Serializable> map) Execute this element.voidsave(CoreSession session) save the document representing this DocumentRoute.voidsetCanceled(CoreSession session) Set the step to a cancel step.voidsetCanDeleteStep(CoreSession session, String userOrGroup) make this user or group step deleter.voidsetCanReadStep(CoreSession session, String userOrGroup) make this user or group a step reader.voidsetCanUpdateStep(CoreSession session, String userOrGroup) make this user or group a step updater.voidsetCanValidateStep(CoreSession session, String userOrGroup) make this user or group a validator for this step.voidsetDone(CoreSession session) set this element as done.voidsetReadOnly(CoreSession session) remove write rights to everyone but the administrators.voidsetReady(CoreSession session) set this element as ready.voidsetRunning(CoreSession session) set this element as running.voidsetValidated(CoreSession session) set this element as validated.voidvalidate(CoreSession session) Set this element to the validate state and put it in read only mode.
- 
Method Details- 
getAttachedDocumentsReturn the list of documents that this route processes.- Parameters:
- session- the session used to fetch the documents
 
- 
getDocumentRouteReturn the DocumentRoute this element is part of.- Parameters:
- session- The session use to fetch the route.
- Throws:
- DocumentNotFoundException- if route cannot be found (@since 2025.10)
 
- 
isValidatedboolean isValidated()if the route this element is part of has been validated.
- 
isReadyboolean isReady()if this element is ready.
- 
isDoneboolean isDone()if this route is done.
- 
isRunningboolean isRunning()if this route is running.
- 
isDraftboolean isDraft()if this route is draft.
- 
getNameString getName()The name of this element.
- 
getDescriptionString getDescription()the description of this element.
- 
runExecute this element. If this is a step, it will run the operation, if this is a containter it will run its children.
- 
runExecute this element. If this is a step, it will run the operation, if this is a container it will run its children.- Parameters:
- map- the values to pass as initial workflow variables
 
- 
resumevoid resume(CoreSession session, String nodeId, String taskId, Map<String, Object> data, String status) Resumes execution on a route node.- Parameters:
- session- the session
- nodeId- the node id to resume on
- taskId- the task id
- data- the data coming from UI form
- status- the id of the button clicked to submit the related task form
- Since:
- 5.6
 
- 
validateSet this element to the validate state and put it in read only mode.
- 
getDocumentDocumentModel getDocument()Get the underlying document representing this element.
- 
savesave the document representing this DocumentRoute.
- 
setValidatedset this element as validated.
- 
setReadyset this element as ready.
- 
setRunningset this element as running.
- 
setDoneset this element as done.
- 
setReadOnlyremove write rights to everyone but the administrators.
- 
followTransitionvoid followTransition(DocumentRouteElement.ElementLifeCycleTransistion transition, CoreSession session, boolean recursive) make this element follow a transition.- Parameters:
- transition- the followed transition.
- session- the session used to follow the transition.
- recursive- If this element has children, do we recurse the follow transition.
- See Also:
 
- 
canValidateStepIf this session can validate the step.
- 
setCanValidateStepmake this user or group a validator for this step.
- 
canUpdateStepIf this session can update this step.
- 
setCanUpdateStepmake this user or group a step updater.
- 
setCanReadStepmake this user or group a step reader.
- 
canDeleteStepIf this session can delete this step.
- 
canUndoStepIf this step can be undone. Default is to allow undoing only if the parent folder is running.
- 
setCanDeleteStepmake this user or group step deleter.
- 
backToReadySet the step back to the ready state from running or done. This method only modify the step state, it does not run any other action (such as undoing the step action)
- 
setCanceledSet the step to a cancel step. This method only modify the state of this element and does not run any other action.
- 
cancelCancel this element.
- 
isCanceledboolean isCanceled()
- 
isModifiableboolean isModifiable()- Returns:
- true
 
- 
getTitleString getTitle()- Since:
- 7.2
 
 
-