Remove ponos.Workflow and use Process instead
Refs https://redmine.teklia.com/issues/2830
This will be the last important part in the ponos migration inside the backend. We can now get rid of the ponos.Workflow class and all its associated recipe management.
The Workflow class must be deleted, so a migration should:
- migrate all
Taskreferences towardsProcess - move the
farmfield onProcess - move the
finisheddatetime - and add the
starteddatetime, which can also be nullable, but should default toWorkflow.createdfor existing ones (refs https://gitlab.com/teklia/requests/-/issues/98) - trash the table and all its content
Regarding the methods on Workflow, a few things must be done too:
- move the
stateproperty (and associated methods) up toProcess - delete the
build_tasksmethod, as we are getting rid ofrecipe- this means the
Process.build_workflowmethod must directly create tasks instead of building a recipe.
- this means the
This could be done in 2 MRs:
- remove the recipe and build & workflow + tasks directly from Process
- migration to get rid of Workflow
Edited by Bastien Abadie