The workflow of a document is controlled depending on its type and configuration. Basically, there are two preconfigured base types that are assigned different workflow types. Depending on the basic type, the workflow is then implemented by use of the state pattern. One of the advantages of the State Pattern-based implementation is that maintainability and in particular the adaption of the workflow to changed requirements (for example, the addition of a new status) can be carried out relatively easily. Disadvantage of the separation approach of this pattern is a relatively extensive class hierarchy, which must first be realized in the development.