We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1378127 commit e6a5e5aCopy full SHA for e6a5e5a
SpiffWorkflow/bpmn/workflow.py
@@ -68,15 +68,15 @@ def _next(self):
68
self.task_list = []
69
elif all([
70
len(task._children) > 0 or subprocess is not None,
71
- task.state >= self.min_state,
+ task.state >= self.min_state or subprocess is not None,
72
self.depth < self.max_depth,
73
]):
74
if subprocess is None:
75
next_tasks = task.children
76
elif self.depth_first:
77
next_tasks = [subprocess.task_tree] + task.children
78
else:
79
- next_tasks = task.children = [subprocess.task_tree]
+ next_tasks = task.children + [subprocess.task_tree]
80
81
if self.depth_first:
82
self.task_list = next_tasks + self.task_list
0 commit comments