public class GraphRouteImpl extends DocumentRouteImpl implements GraphRoute
DocumentRouteElementImpl.GetIsParentRunningUnrestricted, DocumentRouteElementImpl.SetDocumentOnReadOnlyUnrestrictedSessionRunner
DocumentRouteElement.ElementLifeCycleState, DocumentRouteElement.ElementLifeCycleTransistion
Modifier and Type | Field and Description |
---|---|
protected List<GraphNode> |
nodes
To be used through getter.
|
protected Map<String,GraphNode> |
nodesById
To be used through getter.
|
document, runner
PROP_AVAILABILITY_FILTER, PROP_PARENT_NODE, PROP_PARENT_ROUTE, PROP_VARIABLES_FACET
Constructor and Description |
---|
GraphRouteImpl(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
protected void |
compute() |
protected void |
computeLoopTransitions(String startNodeId)
Finds which transitions are re-looping (feedback arc set).
|
protected String |
computeNodes() |
protected void |
computeTransitions()
Deduce input transitions from output transitions.
|
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.
|
List<GraphNode> |
getSuspendedNodes()
Get the list of nodes of which the State is suspended.
|
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, fireWorkflowCompletionEvent, getInitiator, getModelId, getModelName, setDone
getAttachedDocuments, setAttachedDocuments, validate
backToReady, cancel, canDeleteStep, canUpdateStep, canValidateStep, checkLifeCycleState, followTransition, getAttachedDocuments, getDescription, getDocument, getDocumentRoute, getName, getProperty, getTitle, hasPermissionOnDocument, isCanceled, isDone, isDraft, isModifiable, isReady, isRunning, isValidated, resume, run, run, save, setCanceled, setCanDeleteStep, setCanReadStep, setCanUpdateStep, setCanValidateStep, setPermissionOnDocument, setReadOnly, setReady, setRunning, setValidated, undo
clone, equals, finalize, 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
protected void compute()
protected String computeNodes()
protected void computeTransitions() throws DocumentRouteException
DocumentRouteException
protected void computeLoopTransitions(String startNodeId) throws DocumentRouteException
DocumentRouteException
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 sessionpublic List<GraphNode> getSuspendedNodes()
GraphRoute
getSuspendedNodes
in interface GraphRoute
Copyright © 2015 Nuxeo SA. All rights reserved.