The Convent of the Flagellation is the next building you come to after leaving the church.
After leaving the church, rejoin the Via Doloroseand walk up the street to the Convent of the Flagellation, a Franciscan monastery.