SubmissionEnvelopes need to be locked after certain operations to ensure consistency. In particular, submissions can be modified after long running delete & export tasks. We should lock submissions upon enacting a long running submission task to ensure that users or system services can't modify submission data in illegal ways.
Acceptance criteria
A locking mechanism in place for SubmissionEnvelopes
After a delete/submit request is accepted the contents of a submission cannot be modified. Attempts to modify the contents of a locked submission throw an appropriate error response
SubmissionEnvelopes need to be locked after certain operations to ensure consistency. In particular, submissions can be modified after long running delete & export tasks. We should lock submissions upon enacting a long running submission task to ensure that users or system services can't modify submission data in illegal ways.
Acceptance criteria