Integrating document and workflow management systems