sartography / SpiffWorkflow

A powerful workflow engine implemented in pure Python
GNU Lesser General Public License v3.0
1.69k stars 313 forks source link

Improvement/replace root with spec start #348

Closed essweine closed 1 year ago

essweine commented 1 year ago

This changes Workflow to use the spec start task as the root of the task tree rather than adding an additional task.

This also changes the nostart option of WorkflowSpec to optionally add a start task if True, getting rid of the confusing double negative (previously the task was added if not nostart).

Also correct a bug (or at least an inefficiency) I introduced while changing how subworkflows are handled.