Closed essweine closed 1 year ago
Also, both methods (get_tasks
and get_tasks_iterator
) already existed.
The advantage of task filter is that you can extend it if you have custom properties and use your own instead (so for example, you could write a filter in arena's backend that includes spiff properties and pass that in). I added this because there have been many times when I've been hampered by the builtin iterator's capabilities.
This PR includes
Task
class and better filtering capabilities were addedWorkflow.get_tasks
now takes other keyword arguments besides the state and filters them all at once, in one pass through the treeTaskState
class, which was moved into theSpiffWorkflow.utils.task
module.Task
andWorkflow