Closed tlawrie closed 1 year ago
@gchickma @timrbula could you comment on the above.
For delete... do we remove the Workflow, WorkflowTokens, WorkflowRuns, TaskRuns, etc i.e. cascade delete.
Or do we mark as 'deleted' status (keeping in mind we have Active, InActive, Deleted). We then need to make the queries based on status i.e. you cant update a deleted Workflow. -> This is mostly implemented as we stand.
What happens in the current 'delete'? is that what the current inactive is used for?
We have made the decision to mark Workflows as deleted rather than removing them. This was done as otherwise its hard to render the WorkflowRuns for that workflow.
We could make a decision to show a note that says "this will remove all associated data including activity, if you no longer want it to be runnable, mark this Workflow as inactive instead"