From af2f8cad626613df166cba385cb4aea6246ef3a6 Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Thu, 17 Oct 2024 17:21:21 -0400 Subject: [PATCH] ensure tasks are predicted when executing inclusive gateways --- SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py b/SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py index 802504b1..387237bc 100644 --- a/SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py +++ b/SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py @@ -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