Skip to content

Commit

Permalink
ensure tasks are predicted when executing inclusive gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Oct 17, 2024
1 parent 579bac4 commit af2f8ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,6 @@ def _run_hook(self, my_task):
if len(matches + defaults) == 0:
raise WorkflowTaskException('No conditions satisfied on gateway', task=my_task)
my_task._sync_children(matches or defaults, TaskState.FUTURE)
for child in my_task.children:
child.task_spec._predict(child, mask=TaskState.FUTURE|TaskState.PREDICTED_MASK)
return True

0 comments on commit af2f8ca

Please sign in to comment.