public class GraphRunner extends AbstractRunner implements ElementRunner, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LOOPS
Maximum number of steps we do before deciding that this graph is looping.
|
| Constructor and Description |
|---|
GraphRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(CoreSession session,
DocumentRouteElement element)
Cancel this element.
|
protected void |
createTask(CoreSession session,
GraphRoute graph,
GraphNode node) |
protected void |
finishTask(CoreSession session,
GraphRoute graph,
GraphNode node,
Task task,
boolean delete) |
protected void |
finishTask(CoreSession session,
GraphRoute graph,
GraphNode node,
Task task,
boolean delete,
String status) |
protected void |
recursiveCancelInput(GraphRoute graph,
GraphNode originalNode,
LinkedList<GraphNode> pendingNodes) |
void |
resume(CoreSession session,
DocumentRouteElement element,
String nodeId,
String taskId,
Map<String,Object> varData,
String status)
Resumes this graph route on a given node.
|
void |
run(CoreSession session,
DocumentRouteElement element)
Run this element.
|
void |
run(CoreSession session,
DocumentRouteElement element,
Map<String,Serializable> map)
Run this element.
|
protected void |
runGraph(CoreSession session,
DocumentRouteElement element,
GraphNode initialNode)
Runs the graph starting with the given node.
|
getChildrenElement, undoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitundopublic static final int MAX_LOOPS
public GraphRunner()
public void run(CoreSession session, DocumentRouteElement element, Map<String,Serializable> map)
ElementRunnerrun in interface ElementRunnerrun in class AbstractRunnerpublic void run(CoreSession session, DocumentRouteElement element)
ElementRunnerrun in interface ElementRunnerpublic void resume(CoreSession session, DocumentRouteElement element, String nodeId, String taskId, Map<String,Object> varData, String status)
ElementRunnerresume in interface ElementRunnerresume in class AbstractRunnerpublic void cancel(CoreSession session, DocumentRouteElement element)
ElementRunnercancel in interface ElementRunnercancel in class AbstractRunnerDocumentRouteElement.cancel(CoreSession)protected void runGraph(CoreSession session, DocumentRouteElement element, GraphNode initialNode) throws DocumentRouteException
graph - the graphinitialNode - the initial node to runDocumentRouteExceptionprotected void recursiveCancelInput(GraphRoute graph, GraphNode originalNode, LinkedList<GraphNode> pendingNodes)
protected void createTask(CoreSession session, GraphRoute graph, GraphNode node) throws DocumentRouteException
DocumentRouteExceptionprotected void finishTask(CoreSession session, GraphRoute graph, GraphNode node, Task task, boolean delete) throws DocumentRouteException
DocumentRouteExceptionprotected void finishTask(CoreSession session, GraphRoute graph, GraphNode node, Task task, boolean delete, String status) throws DocumentRouteException
DocumentRouteExceptionCopyright © 2015 Nuxeo SA. All rights reserved.