An issue regarding workflow

Please, I need help…
I have a document, and I want to send this document to a department that I specify (a role). This document must be returned to me. Sometimes I send this document to more than one department at the same time to collect many pieces of information. and sometimes the document should go from one sequential form department to another. How can this be done?
In some cases, it is not necessary to pass the document through all departments, but rather it is sent to a department concerned with this file. What is the solution to this problem?