Skip to content

Commit

Permalink
make sure subprocess tasks are always added
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Nov 6, 2023
1 parent 1378127 commit e6a5e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpiffWorkflow/bpmn/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ def _next(self):
self.task_list = []
elif all([
len(task._children) > 0 or subprocess is not None,
task.state >= self.min_state,
task.state >= self.min_state or subprocess is not None,
self.depth < self.max_depth,
]):
if subprocess is None:
next_tasks = task.children
elif self.depth_first:
next_tasks = [subprocess.task_tree] + task.children
else:
next_tasks = task.children = [subprocess.task_tree]
next_tasks = task.children + [subprocess.task_tree]

if self.depth_first:
self.task_list = next_tasks + self.task_list
Expand Down

0 comments on commit e6a5e5a

Please sign in to comment.