Currently all step information is stored in the workflows, and workorders rely on a reference to their original workflow to be executed.
This generates a lot of edge cases around editing workflows or changing the workflow reference in a workorder.
In addition, this dependency makes it so the workflow dataset is required to be synced to the mobile apps, a dataset with a complete different rate of change compared with workorders. This has implications in performance and data integrity.
This issue proposes copying over the step definitions into the workorder upon creation, leaving workflows as one-time read templates and removing the need to have them as syncable data for the mobile app.
- Replace workflow reference with step data copying on workorder creation
- Remove syncing of the workflow dataset from mobile app
- Update UI to accomodate changes in the data