public class GraphRouteImpl extends DocumentRouteImpl implements GraphRoute
DocumentRouteElement.ElementLifeCycleState, DocumentRouteElement.ElementLifeCycleTransistion
PROP_AVAILABILITY_FILTER, PROP_PARENT_NODE, PROP_PARENT_ROUTE, PROP_VARIABLES_FACET
Constructor and Description |
---|
GraphRouteImpl(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
DocumentModelList |
getAttachedDocumentModels()
Gets the attached documents.
|
String |
getAvailabilityFilter()
Returns the availability filter name for this graph.
|
GraphNode |
getNode(String id)
Gets the node with the given id.
|
Collection<GraphNode> |
getNodes()
Gets a collection of the route nodes
|
GraphNode |
getStartNode()
Gets the start node for this graph.
|
Map<String,Serializable> |
getVariables()
Gets the graph variables.
|
boolean |
hasParentRoute()
Checks if this graph instance has been started from another graph.
|
void |
resumeParentRoute(CoreSession session)
Resumes execution of the parent route from which this graph was started.
|
void |
setVariables(Map<String,Serializable> map)
Sets the graph variables.
|
String |
toString() |
canUndoStep, setDone
getAttachedDocuments, setAttachedDocuments, validate
backToReady, cancel, canDeleteStep, canUpdateStep, canValidateStep, followTransition, getAttachedDocuments, getDescription, getDocument, getDocumentRoute, getName, isCanceled, isDone, isDraft, isModifiable, isReady, isRunning, isValidated, resume, run, run, save, setCanceled, setCanDeleteStep, setCanReadStep, setCanUpdateStep, setCanValidateStep, setReadOnly, setReady, setRunning, setValidated, undo
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttachedDocuments, setAttachedDocuments
backToReady, cancel, canDeleteStep, canUpdateStep, canValidateStep, followTransition, getAttachedDocuments, getDescription, getDocument, getDocumentRoute, getName, isCanceled, isDone, isDraft, isModifiable, isReady, isRunning, isValidated, resume, run, run, save, setCanceled, setCanDeleteStep, setCanReadStep, setCanUpdateStep, setCanValidateStep, setReadOnly, setReady, setRunning, setValidated, validate
public GraphRouteImpl(DocumentModel doc)
public Collection<GraphNode> getNodes()
GraphRoute
getNodes
in interface GraphRoute
public GraphNode getStartNode() throws DocumentRouteException
GraphRoute
getStartNode
in interface GraphRoute
DocumentRouteException
public GraphNode getNode(String id)
GraphRoute
getNode
in interface GraphRoute
public Map<String,Serializable> getVariables()
GraphRoute
getVariables
in interface GraphRoute
public void setVariables(Map<String,Serializable> map)
GraphRoute
setVariables
in interface GraphRoute
map
- the map of variablespublic DocumentModelList getAttachedDocumentModels()
GraphRoute
getAttachedDocumentModels
in interface GraphRoute
public String getAvailabilityFilter()
GraphRoute
getAvailabilityFilter
in interface GraphRoute
public boolean hasParentRoute()
GraphRoute
hasParentRoute
in interface GraphRoute
true
if this is a sub-route instancepublic void resumeParentRoute(CoreSession session)
GraphRoute
resumeParentRoute
in interface GraphRoute
session
- the sessionCopyright © 2013 Nuxeo SA. All Rights Reserved.