Skip to content

Commit af2f8ca

Browse files
committed
ensure tasks are predicted when executing inclusive gateways
1 parent 579bac4 commit af2f8ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SpiffWorkflow/bpmn/specs/mixins/inclusive_gateway.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,6 @@ def _run_hook(self, my_task):
126126
if len(matches + defaults) == 0:
127127
raise WorkflowTaskException('No conditions satisfied on gateway', task=my_task)
128128
my_task._sync_children(matches or defaults, TaskState.FUTURE)
129+
for child in my_task.children:
130+
child.task_spec._predict(child, mask=TaskState.FUTURE|TaskState.PREDICTED_MASK)
129131
return True

0 commit comments

Comments
 (0)