Hightlight initial state

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-06-28 15:35:33 -04:00
parent ebf29d0eed
commit 75be11bc96

View File

@@ -137,6 +137,8 @@ class Workflow(models.Model):
'name': value['name'],
'label': value['label'],
'shape': 'doublecircle' if value['connections']['origin'] == 0 or value['connections']['destination'] == 0 or value['initial'] else 'circle',
'style': 'filled' if value['initial'] else '',
'fillcolor': '#eeeeee',
}
diagram.node(**kwargs)