General theory of processes