Skip to content

Commit

Permalink
skip subprocesses in migrate_workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Jul 8, 2024
1 parent 34a1d04 commit a7ddab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpiffWorkflow/bpmn/util/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ def migrate_workflow(diff, workflow, spec, reset_mask=None):
The default rest_mask is TaskState.READY|TaskState.WAITING but can be overridden.
"""
workflow.spec = spec
for task in workflow.get_tasks():
for task in workflow.get_tasks(skip_subprocesses=True):
task.task_spec = diff.alignment.get(task)

default_mask = TaskState.READY|TaskState.WAITING
for task in list(workflow.get_tasks(state=reset_mask or default_mask)):
for task in list(workflow.get_tasks(state=reset_mask or default_mask, skip_subprocesses=True)):
task.reset_branch(None)

0 comments on commit a7ddab8

Please sign in to comment.