Following the gas flows from nuclear spirals to the accretion disk