Document Workflow (State Machine)
Draft, review, approve or reject a document.
Make it your own.
title "Document workflow"
state Draft
state Review
state Approved final
state Rejected
initial Draft
transition Draft -> Review on "submit"
transition Review -> Approved on "approve"
transition Review -> Rejected on "reject"
transition Rejected -> Draft on "revise"