Using stages for document-centered workflows