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

Method get_tasks_iterator

SpiffWorkflow/workflow.py:126–138  ·  view source on GitHub ↗

Returns an iterator of Tasks that meet the conditions specified `kwargs`, starting from the root by default. Parameters: first_task (`Task`): search beginning from this task Notes: Other keyword args are passed directly into `TaskIterator` R

(self, first_task=None, **kwargs)

Source from the content-addressed store, hash-verified

124 return None
125
126 def get_tasks_iterator(self, first_task=None, **kwargs):
127 """Returns an iterator of Tasks that meet the conditions specified `kwargs`, starting from the root by default.
128
129 Parameters:
130 first_task (`Task`): search beginning from this task
131
132 Notes:
133 Other keyword args are passed directly into `TaskIterator`
134
135 Returns:
136 `TaskIterator`: an iterator over the matching tasks
137 """
138 return TaskIterator(first_task or self.task_tree, **kwargs)
139
140 def get_task_from_id(self, task_id):
141 """Returns the task with the given id.

Callers 2

get_tasksMethod · 0.95
get_next_taskMethod · 0.95

Calls 1

TaskIteratorClass · 0.85

Tested by

no test coverage detected