Designing an electronic document workflow