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

Method get_tasks

SpiffWorkflow/workflow.py:97–106  ·  view source on GitHub ↗

Returns a list of `Task`s that meet the conditions specified `kwargs`, starting from the root by default. Notes: Keyword args are passed directly to `get_tasks_iterator` Returns: list(`Task`): the tasks that match the filtering conditions

(self, first_task=None, **kwargs)

Source from the content-addressed store, hash-verified

95 return False
96
97 def get_tasks(self, first_task=None, **kwargs):
98 """Returns a list of `Task`s that meet the conditions specified `kwargs`, starting from the root by default.
99
100 Notes:
101 Keyword args are passed directly to `get_tasks_iterator`
102
103 Returns:
104 list(`Task`): the tasks that match the filtering conditions
105 """
106 return [t for t in self.get_tasks_iterator(first_task, **kwargs)]
107
108 def get_next_task(self, first_task=None, **kwargs):
109 """Returns the next task that meets the iteration conditions, starting from the root by default.

Callers 15

_advance_to_a1Method · 0.95
collect_log_extrasMethod · 0.80
_predictMethod · 0.80
delete_subprocessMethod · 0.80
catchMethod · 0.80
send_eventMethod · 0.80
update_workflowMethod · 0.80
_on_complete_hookMethod · 0.80
_run_hookMethod · 0.80

Calls 1

get_tasks_iteratorMethod · 0.95

Tested by 15

_advance_to_a1Method · 0.76
test_get_tasks_end_atMethod · 0.64
test_get_tasks_end_atMethod · 0.64
testDeserializationMethod · 0.64
do_next_unique_taskMethod · 0.64