page.render();
return;
}
// This will be used the other
Flow displayFlow = new Flow(flow.getName(), (Props)null);
fillFlow(displayFlow, flow);
displayFlow.validateFlow();
String flowJSON = createJsonFlow(displayFlow);
page.add("jsonflow", flowJSON);
page.add("action", "run");
page.add("joblist", createJsonJobList(displayFlow));
}
else if (hasParam(req, "id")) {
long id = Long.parseLong(getParam(req, "id"));
FlowExecutionHolder holder = allFlows.loadExecutableFlow(id);
ExecutableFlow executableFlow = holder.getFlow();
// This will be used the other
Flow displayFlow = new Flow(executableFlow.getName(), (Props)null);
fillFlow(displayFlow, executableFlow);
displayFlow.validateFlow();
String flowJSON = createJsonFlow(displayFlow);
page.add("jsonflow", flowJSON);
page.add("id", id);
if (executableFlow.getStartTime() != null) {