Quantum transition amplitudes for ergodic and for completely integrable systems