public class GraphRouteImpl extends DocumentRouteImpl implements GraphRoute
DocumentRouteElementImpl.GetIsParentRunningUnrestricted, DocumentRouteElementImpl.SetDocumentOnReadOnlyUnrestrictedSessionRunnerDocumentRouteElement.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, runnerPROP_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, setDonegetAttachedDocuments, setAttachedDocuments, validatebackToReady, 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, undoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttachedDocuments, getInitiator, getModelId, getModelName, setAttachedDocumentsbackToReady, 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, validatepublic GraphRouteImpl(DocumentModel doc)
public Collection<GraphNode> getNodes()
GraphRoutegetNodes in interface GraphRouteprotected void compute()
protected String computeNodes()
protected void computeTransitions() throws DocumentRouteException
DocumentRouteExceptionprotected void computeLoopTransitions(String startNodeId) throws DocumentRouteException
DocumentRouteExceptionpublic GraphNode getStartNode() throws DocumentRouteException
GraphRoutegetStartNode in interface GraphRouteDocumentRouteExceptionpublic GraphNode getNode(String id)
GraphRoutegetNode in interface GraphRoutepublic Map<String,Serializable> getVariables()
GraphRoutegetVariables in interface GraphRoutepublic Map<String,Serializable> getJsonVariables()
GraphRoutegetJsonVariables in interface GraphRoutepublic void setVariables(Map<String,Serializable> map)
GraphRoutesetVariables in interface GraphRoutemap - the map of variablespublic void setJSONVariables(Map<String,String> map)
GraphRoutesetJSONVariables in interface GraphRoutemap - the map of variablespublic DocumentModelList getAttachedDocumentModels()
GraphRoutegetAttachedDocumentModels in interface GraphRoutepublic String getAvailabilityFilter()
GraphRoutegetAvailabilityFilter in interface GraphRoutepublic boolean hasParentRoute()
GraphRoutehasParentRoute in interface GraphRoutetrue if this is a sub-route instancepublic void resumeParentRoute(CoreSession session)
GraphRouteresumeParentRoute in interface GraphRoutesession - the sessionpublic List<GraphNode> getSuspendedNodes()
GraphRoutegetSuspendedNodes in interface GraphRouteCopyright © 2019 Nuxeo. All rights reserved.