/
Workflow: Task based update of entities
Workflow: Task based update of entities
This solution is proposed by @Patrick Delcroix. Feel free to comment, to challenge or improve it.
There are several approaches to implementing workflows. The task based approach is one solution that does not require any entities schemas changes when the workflow changes.
Principle of the task based workflow
The workflow should start based on a trigger. In Django, it could be managed by a signal listener part of a Workflow Implementation Module. When the signal is launch (the trigger can be a scheduled task, event from a module or user manual trigger through UI) then the listener could generate the task and start the entity workflow.
Once the task is created: