public interface GraphRoute extends DocumentRoute
DocumentRouteElement.ElementLifeCycleState, DocumentRouteElement.ElementLifeCycleTransistion
Modifier and Type | Field and Description |
---|---|
static String |
PROP_AVAILABILITY_FILTER |
static String |
PROP_PARENT_NODE
The id of the node in the parent route from which this route was started.
|
static String |
PROP_PARENT_ROUTE
The id of the parent route instance from which this route was started.
|
static String |
PROP_VARIABLES_FACET |
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.
|
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
static final String PROP_VARIABLES_FACET
static final String PROP_AVAILABILITY_FILTER
static final String PROP_PARENT_ROUTE
static final String PROP_PARENT_NODE
GraphNode getStartNode() throws DocumentRouteException
DocumentRouteException
DocumentModelList getAttachedDocumentModels()
Map<String,Serializable> getVariables()
Map<String,Serializable> getJsonVariables()
void setVariables(Map<String,Serializable> map)
map
- the map of variablesvoid setJSONVariables(Map<String,String> map)
map
- the map of variablesGraphNode getNode(String id) throws IllegalArgumentException
id
- IllegalArgumentException
- if there is no such nodeCollection<GraphNode> getNodes()
String getAvailabilityFilter()
boolean hasParentRoute()
true
if this is a sub-route instancevoid resumeParentRoute(CoreSession session)
session
- the sessionCopyright © 2015 Nuxeo SA. All rights reserved.