A process in which planktonically growing microorganisms aggregate and grow on solid substrates under the flow of a liquid and produce extracellular polymers that facilitate attachment and matrix formation, resulting in a change in the organisms' growth rate and gene transcription.