MCPcopy
hub / github.com/sartography/SpiffWorkflow / _update_hook

Method _update_hook

SpiffWorkflow/specs/SubWorkflow.py:120–126  ·  view source on GitHub ↗
(self, my_task)

Source from the content-addressed store, hash-verified

118 return True
119
120 def _update_hook(self, my_task):
121 super()._update_hook(my_task)
122 subworkflow = my_task._get_internal_data('subworkflow')
123 if subworkflow is None:
124 self._create_subworkflow(my_task)
125 elif subworkflow.completed:
126 my_task.complete()
127
128 def _on_subworkflow_completed(self, subworkflow, my_task):
129 # Assign variables, if so requested.

Callers

nothing calls this directly

Calls 3

_create_subworkflowMethod · 0.95
_get_internal_dataMethod · 0.80
completeMethod · 0.80

Tested by

no test coverage detected