Commit 13987f80 authored by Jérome Perrin's avatar Jérome Perrin

graph_editor: don't include user action transitions in workflow graph

These are rendered with a loop from the state to the state, it's ugly and not
much informative, remove them for now. We could use different edge styles for
"worklow method only" and "workflow method and user action" transitions and
render this as only one transition. We could also change the data model of
workflow itself, now that this is no longer using DCWorkflow.
parent e36b5753
...@@ -35,11 +35,8 @@ def getWorkflowGraph(workflow): ...@@ -35,11 +35,8 @@ def getWorkflowGraph(workflow):
'transition_id': transition.getId(), # used for edition. 'transition_id': transition.getId(), # used for edition.
'path': transition.getPath() 'path': transition.getPath()
}) })
else:
# user action
transition_list.append(transition)
if transition_list != []: if transition_list:
graph['edge']['transition_to_%s' % (state.getId())] = { graph['edge']['transition_to_%s' % (state.getId())] = {
'_class':'workflow.transition', '_class':'workflow.transition',
'source':state.getId(), 'source':state.getId(),
......
Markdown is supported
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