Commit 5beba97b authored by Jerome Mariette's avatar Jerome Mariette
Browse files

ok for server side

parent 59802c76
......@@ -375,7 +375,17 @@ class JFlowServer (object):
elif kwargs["display"] == "graph":
g = workflow.get_execution_graph()
status = self.jsonify_workflow_status(workflow)
status["nodes"] = g.nodes()
input, inputs, components = [], [], []
for node in g.nodes():
if Workflow.INPUT_GRAPH_LABEL in g.node_attributes(node):
elif Workflow.INPUTS_GRAPH_LABEL in g.node_attributes(node):
elif Workflow.COMPONENT_GRAPH_LABEL in g.node_attributes(node):
status["input_nodes"] = input
status["inputs_nodes"] = inputs
status["components_nodes"] = components
status["edges"] = g.edges()
return status
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment