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.
|
Map<String,Serializable> |
getJsonVariables()
Gets the Json formatted graph variables.
|
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 |
setJSONVariables(Map<String,String> map)
Sets the variables of the workflow based on their JSON representation (especially for scalar lists).
|
void |
setVariables(Map<String,Serializable> map)
Sets the graph variables.
|
String |
toString() |
canUndoStep, getInitiator, getModelId, getModelName, setDone
getAttachedDocuments, setAttachedDocuments, validate
backToReady, cancel, canDeleteStep, canUpdateStep, canValidateStep, followTransition, getAttachedDocuments, getDescription, getDocument, getDocumentRoute, getName, getTitle, 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, getInitiator, getModelId, getModelName, setAttachedDocuments
backToReady, cancel, canDeleteStep, canUndoStep, canUpdateStep, canValidateStep, followTransition, getAttachedDocuments, getDescription, getDocument, getDocumentRoute, getName, getTitle, isCanceled, isDone, isDraft, isModifiable, isReady, isRunning, isValidated, resume, run, run, save, setCanceled, setCanDeleteStep, setCanReadStep, setCanUpdateStep, setCanValidateStep, setDone, 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 Map<String,Serializable> getJsonVariables()
GraphRoute
getJsonVariables
in interface GraphRoute
public void setVariables(Map<String,Serializable> map)
GraphRoute
setVariables
in interface GraphRoute
map
- the map of variablespublic void setJSONVariables(Map<String,String> map)
GraphRoute
setJSONVariables
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 © 2015 Nuxeo SA. All rights reserved.