Control flow refers to the chronological and logical sequence of activities within a process and their efficient control. It also defines which parts of the process are run through alternatively, in parallel or multiple times – as well as conditions and rules to be observed (e.g. implementation of legal requirements).