Transition from reversible to irreversible flow: Absorbing and depinning transitions in a sheared-vortex system