In 5.6.1 there are out of the box workflow process steps for locking and unlocking the payload of a workflow. They aren't listed in the documentation, and I have never used them so I can't speak to any pitfalls in their use, but it is probably good first step before coding anything. You can put the ...