persistenceService.storeProcedure(procedure);
assertEquals(1, persistenceService.getAllProcedures().size());
trackingService.attachProcedure(e.getId(), procedure.getId());
CypherParser parser = new CypherParser();
ExecutionEngine engine = new ExecutionEngine(trackingService.getGraphDb());
Query query = parser.parse("start n=(emergencies, 'emergencyId:*') return n");
ExecutionResult result = engine.execute(query);
Iterator<Node> n_column = result.columnAs("n");
System.out.println("results: " + result);
while (n_column.hasNext()) {
Node currentNode = n_column.next();
for (String key : currentNode.getPropertyKeys()) {
System.out.println("Property (" + key + "): " + currentNode.getProperty(key));
}
}
assertEquals(1, result.size());
query = parser.parse("start n=(procedures, 'procedureId:*') return n");
result = engine.execute(query);
n_column = result.columnAs("n");