A projects keeps a reference to the selected workflow and saves the entered workflow parameter. This is a relic from the time when each rendered result file needed to be defined in the workflow definition. ToDos to decouple:
Stop saving a reference to the workflow and entered parameters when scheduling a workflow (backend: project controller)
Remove reference to workflow and parameters from project model (backend: mode and migration)
Relocate workflow tab in project view into modal which is shown when a workflow is scheduled (frontend)
Once the user entered all params, the workflow can be scheduled via a button in the modal (frontend)
Create and queue an instance of QueuedProject and lock the project (backend: project controller)
In addition save the entered params as JSON in a special folder in the project directory, e.g. .macworp_cache/<sanitized_workflow>.history.json
Add an endpoint which can return the parameter from the history file from step 6
When the user is selecting the same workflow again put get the old params and put them into the form
A projects keeps a reference to the selected workflow and saves the entered workflow parameter. This is a relic from the time when each rendered result file needed to be defined in the workflow definition. ToDos to decouple:
.macworp_cache/<sanitized_workflow>.history.json